Skip to main content

Hints & Tips: Ticket-Specific Text in Templates

Follow the video to add Ticket-specific text to your Templates

Here are the Merge Tags you can use for Variant-specific text.

Add the following Merge Tags at the beginning of the template:

{% set ns = namespace(early=false) %}
{% for ticket in TRANSACTION.TICKETS %}
{% if ticket.VARIANT_NAME == 'Off-Peak Ticket' %}
{% set ns.early = True %}
{% endif %}
{% endfor %}

NOTE - 'early' is the internal flag name, not text that displays to the Customer. You can rename it to suit your Variant, as long as you use the same name in both code blocks.

NOTE - If the email should cover every Ticket in the Order rather than just the one Transaction, loop over ORDER.TICKETS instead of TRANSACTION.TICKETS.

And then in the main body of text, you would add the following 'if statement' before and after the text of your choice:

{% if ns.early %}

Please arrive by 7pm to receive your welcome drinks.

{% endif %}

NOTE - you can also do this for Products and Bands. You just need to replace the Variant Merge Tags with Product and/or Band Merge Tags.

Did this answer your question?