Managing Templates
All templates used in Follow-Up Emails are located at their respective Grid at Marketing -> Email Designer -> Manage Templates.
Actions performed on templates can be selected from the Actions drop-down. Here you can Edit or Remove Template.
How to Create New Template
Go to Marketing -> Email Designed -> Manage Templates, and press the Add Template button. It will bring you to the first stage of Template creation, with the following basic properties:
- Name - name of the template
- Theme - one of the themes, defined at Marketing -> Email Designed -> Manage Themes. Read more in the Themes section.
- Subject - the default subject which will be used in emails, based on this template.
Saving a template at this stage does not actually create a template, but a draft stub. After it is saved, you need to reopen it using the Edit action, and enter contents.
The Template Edit Page breaks into two panels - left (Areas Pane) and right (Preview Pane).
Areas are parts of your email. They depend on your store's design, and your desired look & feel, but should consist of three areas:
- Header - will be displayed at the very top of your email.
- Content - is the main body of your template. Here you can enter your message and other details.
- Footer - will be displayed at the very bottom of your email.
You can use Variables in any part of template. The Insert Variables button will help you to pick up the desired variable interactively.
All of these parts can be previewed on the Preview Pane in both Desktop and Mobile versions.
Tip
You can also change the template area, and have an instant preview without saving. For that, you need to set the Auto-Refresh checkbox at the Preview Pane, or press the Refresh button.Example
The templates used the basic pattern to show all products from the quote/order in an email :{% for item in this.all_visible_items %}
---
{% endfor %}
To send only the first active product in an email, you need to modify this pattern:
{% for item in this.first_visible_item %}
---
{% endfor %}