Hi all - Question about order confirmation emails....
# suitecommerce
m
Hi all - Question about order confirmation emails. Does anyone have an example when you only displayed certain item options instead of any options an item may have? For example, we current use this in our email, but only want to print certain item options: <#if (itemline.options)?has_content><#assign br = "<br />"><#list (itemline.options)?split(br) as option><#assign label=option?substring(0,option?index_of(":")) value=(option?substring(option?index_of(":")+1))?trim> Any ideas what the syntax is to only pull certain item options?
e
In case you are not aware that syntax is from https://freemarker.apache.org/. You are going to have better luck asking in #C466X49JB
👍 1
m
thanks!
s
The default email templates should only show the specific item options that were ordered, so you can refer to that. And my tutorial on this includes only specific item options https://developers.suitecommerce.com/customize-web-store-emails-with-freemarker.html
🙌 1