jaatendi Posted January 6, 2011 Share Posted January 6, 2011 I have a variety of products I bill for, but most of the time I send a customer an invoice for a website design, and then I send them an annual invoice for hosting. I would like to add more information in the annual invoice which explains what the invoice is for. Something like, "this is the annual invoice for your hositng account, which includes the following features, etc". I am looking in the email templates, but don't see how I could make different email templates for different situations. Please advise. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 6, 2011 WHMCS Support Manager Share Posted January 6, 2011 You can use the conditional display feature to customise the invoice base don the product or billing cycle: http://wiki.whmcs.com/Messages/Emails#Conditional_Displays 0 Quote Link to comment Share on other sites More sharing options...
jaatendi Posted January 19, 2011 Author Share Posted January 19, 2011 Ok, so the condition I want to use is based on which product the invoice is for. How could I modify the example below to display a message if the invoice is for a product called "Enhanced Hosting Package"? {if $ticket_department eq "Sales"}The sales department is open 9-5pm Monday-Friday so you will only receive a response between these times. We thank you for your patience.{/if} 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 19, 2011 Share Posted January 19, 2011 Hello, I believe it will be: {if $service_product_name eq "Enhanced Hosting Package"} text version 1 {else} text version 2 {/if} 0 Quote Link to comment Share on other sites More sharing options...
tgriff Posted February 3, 2011 Share Posted February 3, 2011 Would that also work if we did something like this: {if $service_product_name eq "Enhanced Hosting Package"} text version 1 {elseif $service_product_name eq "Performance Hosting Package"} text version 2 {elseif $service_product_name eq "Maximum Hosting Package"} text version 3 {/if} Or, is this where a working sample of the Looping through Data option should be used Looping through data A foreach loop can be used to cycle through values like invoice items: {foreach from=$array_data item=data} {$data.option}: {$data.value} {/foreach} I'd love to see a full working sample of the looping if that is what we need to use here. Surely someone has a working sample? Thanks in advance! 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.