daveyboy Posted August 26, 2012 Share Posted August 26, 2012 Does someone know how this can be done? I already posted this yesterday but for some reason it is still not showing in the forums, I would like the templates to send a different logo in the email templates based on wich product group the customer has ordered a product from eg Product group 1 named CAT1 has products A B C product group 2 named CAT2 has products A B C Customer 1 purchases a product from CAT2 and receives a specific logo in the email based on CAT2 another customer purchases a product belonging to CAT1 and receives a different logo to the first customer this being based on the product they have purchased belonging to CAT1 I tried this {if $groupname == "CAT1"} <img style="float: center;" src="http://mydomain.com/images/CAT1.png" alt="" /> {/if} {if $groupname == "CAT2"} <img style="float: center;" src="http://mydomain.com/images/CAT2.png" alt="" /> {/if} but no logo is displayed in the emails sent to customers. Thanks for any help. 0 Quote Link to comment Share on other sites More sharing options...
Vox Posted August 31, 2012 Share Posted August 31, 2012 Hi, I cannot see a merge field available for the product group, only the product itself Product Name {$service_product_name} Have you tried using the Product Custom Fields to get what you want here: http://docs.whmcs.com/Email_Templates 0 Quote Link to comment Share on other sites More sharing options...
daveyboy Posted September 7, 2012 Author Share Posted September 7, 2012 Hey, I have tried adding the merge field but you suggested I'm not sure if I used the merge filed function correctly or not but still nothing appears in the emails received, I also tried the custom product fields but again I'm not able to get any logo to appear, can the if function be used in all the email templates e.g. product emails and general emails or just in the product emails. Iv been trying for days and I would really appreciate a lead in what i might be doing wrong please. Thanks 0 Quote Link to comment Share on other sites More sharing options...
Vox Posted September 10, 2012 Share Posted September 10, 2012 Hi, If you set up a new email template in the "Product Messages" section and include this is the body: I'm sending this to customer that has {$service_product_name} ............. so you know what plan you are working on. Then here's a "starter for 10" for the customisation or selection part: {if $service_product_name eq "Put one of your Product Names here"} Success! This must have been sent to a customer who has {$service_product_name} {else} Mmmm! This customer must be on another plan. {/if} 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.