Menu
Feedback
Start here
Tutorials & Solutions
Developers Portal

Known Issues
Support Rules

Frequently Asked Questions
Announcements
Start here
VTEX Modules: Getting Started
Transactional EmailsIncluding order variables in email template
Including order variables in email template
2 min read

In Message Center, within the Templates tab, you will find the transactional email templates sent to your customers.

You can customize all Message Center templates, and there's a number of variables that allow you to dynamically add data to the email.

These variables are JSON properties in the JSON Data field and can be used in the email HTML. Just insert them into double braces using the following format: {{variable}}

Example

JSON Data examples will only appear in templates when you complete the desired action in your store. If you have not transacted an order, recurrence or any other action, JSON Data will appear blank.

Let's say you want to enter the carrier's name in the order sent email.

To do this, go to the order sent template and, in the JSON Data field, look for the courier property.

{"base64":"  ","img":{"width":1202,"height":734,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":58738,"url":"https://images.ctfassets.net/alneenqid6w5/3lkYWEKSwjz99oSGDCpapE/338873a8e5b2558b0fa0df9c2bc3b4c6/EN_Incluir_vari__veis_do_pedido_no_template_de_e-mail_-_1.png"}}

The value entered for this property is just an example, but you can use it in the HTML field so that when the email is sent, the customer will see the carrier actually responsible for delivering the order.

Note that the courier property is inside the package object. Therefore, you need to enter it as follows:

{{package.courier}}

{"base64":"  ","img":{"width":1199,"height":987,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":114535,"url":"https://images.ctfassets.net/alneenqid6w5/5MhBjWokAHVHZKXgvswn6X/cf78d7e9f4408c7eec101e5768aaef4b/EN_Incluir_vari__veis_do_pedido_no_template_de_e-mail_-_2.png"}}

See that the example value ("Carrier Teste Courier S.A.") was inserted in the preview screen, below the HTML and JSON Data fields.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
How to create and edit transactional email templates
« Previous
Viewing the email history of an order
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
GithubDevelopers PortalCommunityFeedbackSite Map