Skip to main content
Each email opens in its own full-screen editor: the settings on the left, a live preview of a real shipment on the right. The Content tab holds what the email says; Style its look (The look of your emails); Sending who gets it and when (Who gets an email, and when). The email editor: content on the left, the preview on the right

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.
Close the window when you’re done; if you have unsaved changes, Foliant asks first.

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):
  1. 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.
  2. Write the text in each language. A text you leave empty uses your main language.
  3. Click Done, then save.
To remove a language from a text, open Manage translations and remove it there. Once the email is written in more than one language, Language above the subject chooses which one the preview shows. Each customer gets the email in their language, text by text: a text not written in their language uses your main language. Anyone else gets your main language. You can change this under Sending › Language.

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.
Above the email, a line shows how an inbox lists it: your store’s name, the subject and the preview text. A mistake in Liquid shows The email can’t be shown with the error.

Save and send a test

Click Save (or use the save bar). A field with a mistake is marked and the email isn’t saved until it’s fixed. To check the real email, click Send test: choose an order, a language and an address, then Send test. The test uses the saved email and shows in the email history as Test.