Skip to main content

Templates

Templates define the layout and content of emails and PDF documents generated by the system. Use document templates for order confirmations, quotes and other PDFs. Use email templates to control the subject, recipients and body of automated emails.

Templates overview

Before you begin

  • You need the Configuration role to view this page.
  • You need Owner access on the Configuration role to create or delete templates.

View templates

Go to Shops & Channels > Templates to see a table of all templates.

ColumnDescription
IDTemplate ID
NameTemplate name (localized)
TypeEmail or Document
Date CreatedWhen created (sortable)
Date UpdatedWhen last modified (sortable)

Click any row to open the template detail page. The detail page has two tabs: Details and Logs.

Create a template

  1. Click New Template.
  2. Set the Type to either Email or Document. This cannot be changed after creation.
  3. Enter a Name in at least one language.
  4. Enter the Content using the HTML code editor. Templates use Mustache/Handlebars syntax to insert dynamic data.
  5. Click Format Code to auto-format your template code.
  6. Optionally, add a Custom query (GraphQL) to fetch data and Query variables (JSON) with Mustache expressions to pass dynamic values into the query.
tip

Email templates can pull live data from the platform using GraphQL queries. Use this to include order line items, pricing and customer details in confirmation emails without hardcoding content.

  1. Click Save.

Configure a document template

Document templates generate PDF files for orders and quotes. The detail page shows the Details tab with a right sidebar containing General, Document and Properties sections.

Document template detail page

The General section contains the type, name and content editor with the GraphQL query and variables.

Document template properties

In the Document section, configure the output settings:

FieldDescription
File nameOutput filename for the generated PDF (localized, with language selector)
Default order PDFToggle to use this template as the default PDF attached to order emails
Default Quotation PDFToggle to use this template as the default PDF attached to quote emails

The Properties section displays the template ID, created date and last modified date.

Configure an email template

Email templates control automated email messages. The detail page shows the Details tab with a right sidebar containing General, Email, Attachments and Properties sections.

Email template detail page

The General section contains the type, name and content editor, identical to document templates.

Set email recipients and sender

In the Email section, configure who receives the email and how it appears.

Email section with subject, sender and recipients

FieldDescription
SubjectEmail subject line (localized). Supports Mustache variables for dynamic content.
From emailSender email address
From nameSender display name (localized)
ToRecipient list. Supports dynamic recipients using Mustache expressions.
CCCC recipient list
BCCBCC recipient list

To add recipients to the To, CC or BCC fields, click Add recipients. Each recipient appears as a chip. Click the X on a chip to remove it.

Attach documents to an email template

In the Attachments section, link document templates that should be attached to the email as PDFs.

Attachments section with linked document template

  1. Click Add attachment to open the template picker (filtered to document templates).
  2. Select the document template you want to attach.

To remove an attachment, select it using the checkbox and click Remove.

View template error logs

Switch to the Logs tab to see error logs for this template.

Logs tab with Template Error Logs table

ColumnDescription
IdError log ID
Error typeType of error (sortable)
Date CreatedWhen the error occurred (sortable)

Click a row to view the full error details, including the error message, template ID, topic name, field name, event instance and stack trace.

Duplicate a template

Each row has a Duplicate action in the context menu. This creates a copy with "(Copy)" appended to the name. For email templates, attachments are also copied.

Filter templates

FilterTypeDescription
TypesCheckboxesEmail, Document

Delete templates

  1. Select one or more templates using the checkboxes.
  2. Use the delete action.
  3. Confirm the deletion.