Jump to content

Unique invoice and suspension emails for particular product


henrik

Recommended Posts

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?

Link to comment
Share on other sites

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 by brian!
Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated