dimitrifrom31 Posted December 5, 2014 Share Posted December 5, 2014 Hi, I'm tryingto disable email reminders for unpaid invoices only for products that are still in a pending state as I have quite a lot of visitors making one (or more) orders just to check it out (and then eventually a new one they wll complete) and some of them are complaining about receiving reminders while they just wanted to "have a look". Some reported feeling like "forced" to pay with such reminders. I did read that it might be possible to achieve that using a hook. If so it should be quite a simple one but my whmcs/coding knowledge is still too much limited to sort that out. Ideally I would like to disable reminders for the add funds invoices too (I guess this should be doable as well using {if $invoiceitems|strstr:"Add Funds"} Any help will be apreciated, I may consider paying for it if your price is reasonable. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 5, 2014 Share Posted December 5, 2014 a good starting point for this might be the code recently posted by mbit... http://forum.whmcs.com/showthread.php?95739-Not-send-invoice-reminders-for-invoices-over-a-certain-value&p=401718#post401718 in that case, it's blocking email reminders over a certain total amount, so you'd need to tweak the final if statement to make the correct comparisons. 0 Quote Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted December 5, 2014 Author Share Posted December 5, 2014 I gave it a first test to disable "add funds" reminders editing the hook you linked me to. I am not sure if I can test the hook by manually clicking the button to send invoice reminder or if I have to wait for the cron job? I mean let's suppose my hook is correct, should I receive the reminder email if I send it manually? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 5, 2014 Share Posted December 5, 2014 it should work for both manual and cron - so preventing the emails if the conditions(s) are triggered. might be useful to take a look at the link below to make sure you are using the correct variables. http://docs.whmcs.com/API:Get_Invoice 0 Quote Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted December 5, 2014 Author Share Posted December 5, 2014 Thanks for the info. I made a few tests but none is working. I contacted the author of the original hook to see if he can help. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.