Jump to content

Custom email template based on product group?


daveyboy

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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}

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