How can I access order tags for email notifications?

How can I access order tags for email notifications?

Juantrov
Shopify Partner
3 0 1

I am trying to create a conditional in the email notifications template.

I want to add a text to the confirmation email if the order has a specific tag.

 

{% if order.tags contains 'myTag' %}
<p>Text to insert</p>
{% endif %}

But is not working. I don't know how to acces the order tags.

 

I also tried with only "tags" instead "order.tags"

 

Thanks!!

Reply 1 (1)

JoesIdeas
Shopify Partner
2394 219 633

Try removing "order."

 

According to the docs you don't need to reference the order object - https://help.shopify.com/en/manual/orders/notifications/email-variables#order-fulfillment

 

• Creator of Shopify automation apps Order Automator + Product Automator [apps that save you time + money]
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Figure Out Why You're Not Getting Sales