Email templates

Go to Design → Email templates

There are default ready-made templates in AbanteCart for emails received by customers. If you want these emails to look more unique, deliver more information to a customer, and fit with your overall brand’s look better, you simply need to modify them. Login to AbanteCart admin and proceed to Design → Email templates.

Add new template

New templates can be added manually or installed by extensions.

When creating a new template, please note you must create a template for each enabled https://abantecart.atlassian.net/wiki/spaces/AD/pages/15269894 in each store and fill all required fields.

Text ID: lowercase text unique name of the template without spaces and special characters. The name must be unique but can be the same in different languages.

Custom Headers: not required. Optional params for email server. Email headers can specify specific sending and return options for an email. When sending via SMTP, you can use custom headers to do a great many things: customize messages, tag them, track them, or control specific behaviors. Please refer to your email sender server documentation.

Subject: email subject. Required. Dynamic variables syntax supported

The emails usually have two versions the HTML and plain text versions. Both support the Dynamic variable's syntax.

HTML version stands for HyperText Markup Language. It’s the way web pages and email templates are coded so that text is formatted and images are added.

Plain Text is regular text, with no formatting options such as bold, italics, underlines, or special layout options.

Emails can be received and viewed in both HTML or Plain-Text formats. Depending on the customer's email client or particular settings your customers are using, the HTML version may or may not be able to be displayed.

 

Email variables

The dynamic content like store name or customer name is represented as a variable with double or triple mustaches. The output of "double-mustache" variables are HTML escaped by default. If you want to return parsed HTML, use the triple mustache {{{name}}}

The variables added to the template have to be defined in PHP code which collects and prepares data. All core templates have reference info with a comma-separated list of allowed variables see Allowed Placeholders

 


When you add or create a new language or receive errors like “Email Template with text id .. not found”, “Error: E-Mail subject required!” you should copy email templates from the default English language to others. You can do this manually or automatically using the Load missing data tool

 

AbanteCart, all rights reserved. 2024 ©