
Open the editor
On Delivery › Shipping emails, click the email’s name. Its title shows the email (for example Shipped email), and the badge beside the tabs says whether it’s On or Off. At the top:- Save saves your changes (or use the save bar).
- Send test mails the saved email to you.
- Turn on / Turn off switches the email.
Languages
An email is written in your store’s main language. If your store sells in more languages, each text (the Subject, the Preview text, every block’s texts and the code) has Add language next to its label (Languages with a count once it has translations):- Click Add language next to a text to open Manage translations, click Add language and choose the languages your store publishes in Shopify. Where Foliant has its own text in a language, the new box starts with it.
- Write the text in each language. A text you leave empty uses your main language.
- Click Done, then save.
Subject and preview text
Subject is the email’s subject. Preview text shows after the subject in most inboxes. Both can use Liquid, such as{{ order.name }}.
Blocks
The email is built from blocks, top to bottom. Click a block in Blocks to edit its text and how it shows. Drag a block by its handle to move it, and click the eye to hide or show it. The ⋯ menu has Move up, Move down and Remove. To add a block, click Add block and choose one.
Texts can use Liquid. Click a variable under Insert (click to copy) to copy it, then paste it into a text. The variables include
order, customer, shop and shipment (for example shipment.tracking_number and shipment.is_partial).
Attach PDFs
In the Attachments block, tick up to 5 of your order templates. Each is rendered for the order, as when printed, and attached. With none ticked, the email goes on its own. A PDF larger than 10 MB isn’t attached.Edit as code
Click Edit as code (Liquid) to write the email’s body in HTML and Liquid, in your main language (and, with Add language, in your other languages). It starts with your blocks, each placed as{{ blocks.tracking }}, so you can rearrange them, wrap them in your own HTML or replace them. The background, card, font and preview text stay Foliant’s. Back to blocks returns to the blocks.
Preview
The preview shows the email as edited, before you save:- Preview with: your latest order, or one you choose.
- Shipment: the order’s latest shipment, or one you choose (1 of 2 · DHL Express). An order that hasn’t shipped shows an example shipment.
- Desktop or Mobile width.