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
Goal: Customize the order confirmation email for pre-orders by accessing the order’s tag (e.g., “pre-order”) as a Liquid variable.
Update/Solution: Shopify email notifications expose order tags via the Liquid variable {{ tags }}. You can iterate through tags and conditionally render content when a specific tag (like “pre-order”) is present. An example approach was provided: loop over tags and use if/elsif to show pre-order-specific messaging or other tag-based content. Reference to Shopify’s notification variables documentation was included.
Notes: Liquid is Shopify’s templating language used in notification templates.
Outcome: A clear, actionable method was given with example logic; no further issues or disagreements raised. The question appears resolved.
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
Yes use {{ tags }}. Reference: https://help.shopify.com/en/manual/orders/notifications/email-variables
Example:
{% for tag in tags %}
{% if tag == "pre-order" %}
Something to show specifically for pre orders
{% elsif tag == "some other tag" %}
Show something for another tag
{% endif %}
{% endfor %}