Skip to main content
All CollectionsDashboardProductsTemplates
How to Use Template Variables
How to Use Template Variables

Learn how to use variables in Ventrata to customise receipts and vouchers.

Lucia Burin Sestakova avatar
Written by Lucia Burin Sestakova
Updated today

Variables allow you to insert specific information into printed receipts, tickets or PDF vouchers, enabling greater customisation of customer-facing assets.

Ventrata provides multiple ways to utilise existing variables, and you can also create your own to enhance personalisation.

Variable Types

Variables in Ventrata can be categorised into three levels, each with different degrees of customisation and use cases.

πŸ“’ NOTE

Template variables and printing variables do not work with email templates.

1. Static (or Semi-Static) Variables

These variables have fixed keys with little to no customisation. Their notation may vary depending on the platform.

They are all gathered in the following articles:

Sources

Examples

This example uses the notation applicable to printing variables.

Example Variable Key

Printing Variables Notation

Example Value

Booking reference

{booking.reference}

X12EGA1G

Product name

{product.name}

Techyo Trolley Express

2. Supplier Level

These variables are specific to your supplier and can be used for translations or standard information across templates.

Sources

Examples

Example Variable Key

Notation

Example Value

entry_point

{entry_point}

Entry from rear stage door

product_name

{product_name}

PRODUCT NAME

3. Product, Unit, Tour and Option Variables

These variables provide additional details specific to a product, unit, tour or option. They can also be used as translation keys.

Sources

Examples

Level

Prefix

Example Notation

product.

{product.your_product_variable}

unit.

{unit.your_unit_variable}

tour.

{tour.your_tour_variable}

option.

{option.your_option_variable}

Template & Platforms Usage

Usage

Static (or semi-static)

Supplier Level

Product / Unit / Tour / Option

Printed Receipts

βœ… YES

βœ… YES

βœ… YES

βœ… YES

βœ… YES

βœ… YES

Postmark / Mailjet / Twilio Campaigns

βœ… YES

❌ NO

❌ NO


Using Variables in Templates

Prerequisites:

  • Add global variables to your supplier.

    You can use them as translation keys across your templates (except email templates).

  • Add variables to your products, units, tours and options as necessary to provide additional information for the specific unit, tour or option, respectively.

  • For multi-language support, make sure that:

❗️IMPORTANT❗️

Enter variable keys in each language variant in the exact same format, or they will not appear in the final asset.

Voucher Templates

  1. Create your template following the steps outlined here.

  2. Add variables using the Add Textbox button.


    πŸ“— TIP

    Ensure text fields are large enough to accommodate longer values or translations.


  3. Press Save.

  4. Verify that your variables translate to the correct values by selecting a booking from the bookings table.

  5. Press the Print Voucher.

  6. Select the appropriate template.

  7. Review the template and adjust as needed.

πŸ“’ NOTE

Product, unit, tour and option variables must be present on each product to translate into the generated voucher. Notice how the English voucher is missing option and tour instructions.

Voucher Template

English Voucher

Czech Voucher

(click on the image to enlarge)

(click on the image to enlarge)

(click on the image to enlarge)

product, unit, tour or option variable


Receipt Templates

  1. Create your template following the steps outlined here.

  2. Add variables using text buttons.

  3. Press Save.

  4. Test the receipt by making a booking on a terminal with a built-in printer or an external printer.


    πŸ“’ NOTE

    Make sure that the Print Tickets option is added to the 'Allowed Delivery Methods' field in the terminal location settings.


  5. Press the Print Ticket button.

  6. Review and adjust the layout as needed.

Receipt Template

English Receipt

Czech Receipt

product, unit, tour or option variable

The delineated area is populated with the receipt template content; the bottom part of the receipt is fixed

Did this answer your question?