I need to provide to my clients a low credit notification.
My clients add funds to their account and we deduct the funds from their available credit as our services are used. I want to have an option were they can receive the low credit alert. they will be presented with a few options to trigger the alert. for example $5.00, $10.00, $50.00, $100.00. each customer can define it's own amount to trigger. I would like to have a cron job to run and check who needs the alert.
The cron will run every 15 minutes. so it will inform the customer when the account credit is at the triger amount and also send another alert when the balance is $1.00(like a final warning)
I will create two email templates that will contain my message to the user. I will create 2. One of the templates will tell them that their account balabce is at their trigger amount. the other one will tell them that their available credit has reached $1.00 and some other text. After that there is no more notifications. for the clients who has no credit or very little credit untill they refill and need to be notify againg.
the trigger options can be on the cron file, if I need to change the amounts or add amounts I will go and change it on the php cron script. so there is no need to have a admin interface for this.