Can I get the order tag as a liquid variable for pre-orders?

Can I get the order tag as a liquid variable for pre-orders?

jakob123
Visitor
1 0 0

Hello, 

Is it possible to get the order tag as a liquid variable?

 

I want to customize my order confirmation mail for pre-orders, which we are currently tagging with "pre-order" in shopify. 


Kind regards,

Jakob

Reply 1 (1)

JoesIdeas
Shopify Partner
2419 224 646

Yes use {{ tags }}. Reference: https://help.shopify.com/en/manual/orders/notifications/email-variables

 

Example:

{% for tag in tags %}
  {% if tag == "pre-order" %}
    <p>Something to show specifically for pre orders
  {% elsif tag == "some other tag" %}
    <p>Show something for another tag</p>
  {% endif %}
{% endfor %}
    

 

• Creator of Order Automator [auto tag, fulfill, connect FBA, order jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tools