Link to home
Start Free TrialLog in
Avatar of Porffor
PorfforFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Basic help required for dynamic email template variables in Ecwid eCommerce

Ecwid allows modification of the 'Order Confirmation' email that is emailed to buyers upon checking out. I currently use this to display extra information in the email in the event that the purchased item's SKU equals 'ABC-0719'...


<#if orderItem.sku = 'ABC-0719'>

some text

<#else></#if>


This works, however, I now want to expand its use so that SKU 'ABC-0819' also qualifies to have the extra information, and there will be many more of these 'ABC' items in the future that I want included in this as well. Therefore I want to have something like

<#if orderItem.sku "contains" 'ABC'>

But I'm not sure what syntax I need. Can you help here?

The variables are listed here https://support.ecwid.com/hc/en-us/articles/207808345-Editing-mail-notifications-templates but it doesn't show you how to use logic with them.

Thanks.
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

They suggest tabber and you have to modify each products additonal information
https://support.ecwid.com/hc/en-us/articles/207808475-Adding-tabs-in-product-descriptions
Avatar of Porffor

ASKER

Hi David. Thanks for the suggestion, but it isn't exactly what I need. I want the additional information to be sent to someone's email address, i.e. in the Order Confirmation email.

Thanks.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.