Structure
A template supplies two things: a subject and a body. Both are written asblock tags, which is how SellAuth splits a single file into those two parts. You do not extend anything or write an HTML document, because the shared layout provides them.
subject block becomes the subject line and is rendered as plain text. The content block is the body, and is inserted into the shared layout. Both are required.
The base layout
Base Layout is a template like any other, and it wraps every email your shop sends. It carries the document, the styles, your shop’s branding header, the social links footer and the unsubscribe link, and it renders each email’s body where it says:shop, so anything invoice-specific has to go in the individual template.
Available templates
Each template receives its own set of variables, listed below.shop is available everywhere.
Invoices
Feedback
Subscriptions
Support and account
Growth
Helpers
Email templates get no SellAuth theme filters. The full helper set is:Writing a template
Content that came from you or the buyer is escaped by default, so fields holding HTML need| safe:
Reverting
Deleting your version of a template restores the SellAuth default, including any improvements shipped since you overrode it. Useful for templates you customised once and no longer maintain.Next steps
Email settings
Sending these emails from your own domain.
Nunjucks
The template language reference.