henrik Posted October 4, 2015 Share Posted October 4, 2015 Hi everyone, we have successfully been using WHMCS for several years now, and it is working great. We are now moving on to selling a different type of product in addition to the ones we already sell, and we need to have a different set of email templates for payment reminder and suspension for this particular product. We have been going over WHMCS's config and cannot see any possibilities for this. We have also been searching the web for different modules, but cannot find anything that does exactly this. We can only set custom welcome and termination emails in the core of WHMCS, but not payment reminder and suspension emails ... Suggestions anyone? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 4, 2015 Share Posted October 4, 2015 (edited) Henrik, how about using Conditional Displays in the email templates? http://docs.whmcs.com/Email_Templates#Conditional_Displays There may be cases where you want to display text in an email only if certain conditions are met. so basically you'll be looking to modify the existing email templates with {if} statements... e.g in basic terms - if product x, display 'some text' else display 'some other text'. when you look at the templates, you'll see that they're already using {if} statements, so it should simply be a case of adding your own conditions to the email output and testing thoroughly. Edited October 4, 2015 by brian! 0 Quote Link to comment Share on other sites More sharing options...
henrik Posted October 4, 2015 Author Share Posted October 4, 2015 Hi Brian, thanks a lot. That nifty feature has been totally overseen as we have been editing the templates years ago! It would be perfectly usable for this scenario, but the only problem is that for this new product, we need to have our own e-mail as "copy to". There is no way to do this with conditional display I presume, and we cannot have every single payment reminder going to our e-mail as a copy - only the ones that are sent for the new product-line.. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 4, 2015 Share Posted October 4, 2015 Hi Henrik, It would be perfectly usable for this scenario, but the only problem is that for this new product, we need to have our own e-mail as "copy to". There is no way to do this with conditional display I presume, and we cannot have every single payment reminder going to our e-mail as a copy - only the ones that are sent for the new product-line.. you can't use conditions on the 'copy to' field - it either contains email address(es) added for every email, or no addresses. one (ugly?) solution might be to add your 'copy to' email address; use a conditional display to change/edit the email subject for this product and then setup a mail filter to delete/move those emails based on the subject value... e.g, we have the following on our "Invoice Created" template subject line... Customer Invoice {if $invoice_status eq "Cancelled"} - CANCELLED{/if} so for most invoices, the subject line is "Customer Invoice"; if it's a cancelled invoice, it uses "Customer Invoice - CANCELLED" as the subject. i'm not sure of the viability of using an action hook to do this - it might be possible, but I can't recall ever seeing code that does it. 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.