All Collections
How to use variables to populate your email templates
How to use variables to populate your email templates

Learn how to easily automate how emails are populated through the use of template variables in Booqable.

Catrin Donnelly avatar
Written by Catrin Donnelly
Updated over a week ago

Variables are small lines code that you can place in your email templates, that work by automatically filling up with the subject line of that emails specific customer, order, and products on the order.

Here I have created a manual email template called 'Let us know what you think!', asking my customers after each order to include a review on my website. I have populated it with various email variables; including {{order.number}}, {{}} and {{}}.

Emails are most commonly sent from an individual order itself, like below.

Here you can see that these variables are automatically changed into the order number, the name, and the company name of the individual customer connected to this order.

If you click the button for Preview at the bottom of this pop up box, you can also see what the customer will see when receiving the email in their inbox.

Browse through the variables below to add to your automatic, and manual templates to create the perfect emails for your customers.

Note: Want to know if it is possible to send emails in different languages? Thankfully, it is!

Write your email templates in the language of your choice, and include the same variables that you see below. They will populate using the data from the system in the same way, such as the order number.

In this article:

Order variables

















Note: Currently the variable for {{order.startsAt}} and {{order.stopsAt}} cannot be altered. If you change your rental periods to exclude time selection for the customer, the time that will appear here are the default times you set up for each order.

Products and line items

To show information about the products on an order, you need to wrap the variables between {{#order.lines}} and {{/order.lines}}. This information is displayed for each product on an order.

For example:

    {{quantity}} x {{title}} | {{displayPrice}}

Document variables



​ {{}}

Customer variables

Show information about your customers.


Company variables

These variables display information about your company.


Employee variables

These variables display information about the Booqable user who's sending the email.


Custom field variables

You can use variables in your email templates to quickly populate your emails with the custom fields you may have created for your online checkout, your products, your manual orders, and your customers.

Variables for custom fields have the following structure:


You'll need to replace the context and the field_id to target the correct custom field:

  • The context can be order, customer, or product.

  • To find the field_id, go to Settings > Custom fields and view the specific custom field you wish to include in your emails.

Custom fields for customers, and orders.

Putting it all together, a variable for a customer's address could look like below.


A variable for order packing notes could look like below.


Custom fields for products.

Like other email variables for products, custom fields for products are always added in an order line section. This section renders product lines for all products on an order. It begins with {{#order.lines}} and ends with {{/order.lines}}.

Here's an example:


Did this answer your question?