Jump to content

Changing logo sent in email templates based on product category?


daveyboy

Recommended Posts

Is it possible to change the logo/image that is sent to a customer based on what category the product they purchased belongs to, eg CAT1 / PRODUCTS A B C. CAT2 PRODUCTS A B C

 

I want it that if eg a customer buys a hosting plan which is product B from CAT2 they would receive a different logo associated with CAT2 in the emails (welcome/invoice etc )they receive compared to a customer that purchased a product from CAT 1. and if a customer purchased products from bith CAT1 and CAT2 they would receive both logos. this is because I want them to receive the logo of the package theyre on.

 

I tried this function but although the images showed in the admin area email templates in the actual emails the clients receive no image/logo is shown.

 

{if $groupname == "CAT1"}

<img style="float: left;" src="http://domain.com/imags/imagecat1.png" alt="" />

{/if}

{if if $groupname == "CAT2"}

<img style="float: left;" src="http://domain.com/imags/imagecat2.png" alt="" />

{/if}

 

Appreciate if someone can tell me if this would be possible and any help.

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

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