User GuideContent

Content

Sana Commerce 8.2
Your provider

E-Mail Templates

There are five different types of the e-mail messages which are used in Sana Commerce: 'Change password', 'Forgot password', 'Order confirmation', 'Contact Us' and 'Tell a friend'. The layout of each e-mail message is defined in the e-mail template.

Management of the e-mail templates content is performed in the Sana Commerce backoffice: Content -> E-mail templates:
 
The 'E-Mail Templates' Overview
 
It is possible to edit the existing e-mail templates by clicking on the  button. After this the 'Edit e-mail template' page is opened:
 
E-Mail Editor
 
Managing Message Content
E-mails in Sana Commerce are multi-language. The e-mail template can be found by entering a specific group code:
 
Mail Type Group Code
Forgot password Mail_ForgotPassword
Order mail Mail_OrderConfirmation
Change password Mail_ChangePasswordTemplate
Contact us Mail_ContactUsTemplate
Tell a friend Mail_TellaFriend
 
In the e-mail templates 'replace texts' are used. They can be recognized by the brackets in the text. These texts are replaced by the external values. These values are used in the entire webshop so when you change them it will be shown everywhere.
 
General variables as well as the variables specific for each e-mail template are described in the tables below:
 
General variables (except 'Tell a friend')
Name Description
NAME The name of a customer in Sana Commerce - SQL Provider. In Sana Commerce - NAV / AX Connectors this variable is empty.
SURNAME The surname of a customer in Sana Commerce - SQL Provider. In Sana Commerce - NAV / AX Connectors this variable represents both the Name and the Surname of a customer.
 
Forgot password / Change password
Name Description
EMAIL The e-mail address of a customer.
PASSWORD The password of a customer.
SHOPNAME The name of a webshop.
 
Order confirmation
Name Description
ORDERADDRESS The billing and shipping addresses of an order.
ORDERNUMBER The number of an order.
ORDERDETAILS The details of an order.
ADDITIONAL_ORDER_INFORMATION The reference number, comments and the requested delivery date of an order.
SHOPEMAIL The e-mail address of a webshop.
SHOPPHONE The telephone number of a webshop.
SHOPNAME The name of a webshop.
 
Contact us
Name Description
COMPANYNAME The name of a company.
EMAIL The e-mail address of a message sender.
PHONE The phone of a message sender.
COMMENTS The comments of a message sender.
 
Tell a friend ([SHOPNAME] - Check out this product)
Name Description
SHOPNAME The name of a webshop. Note: only the SHOPNAME variable can be used in the e-mail template title.
USERNAME The name of a customer.
USEREMAIL The e-mail address of a customer.
PRODUCTTITLE The name of a target product. It consists of two variables: PRODUCTTITLE itself and PRODUCTURL. Note: separate variables are visible only in the HTML view.
PRODUCTURL The direct link to a target product. Note: This variable is only visible in the HTML view and is the part of the 'PRODUCTTITLE' variable.
WEBSITEDOMAIN The link to a website. You can read more about this variable below after the table. 
SHOPEMAIL The e-mail address of a webshop. This variable is not used at the moment but can be added to the template if needed.
SHOPPHONE The telephone number of a webshop. This variable is not used at the moment but can be added to the template if needed.
MESSAGE The text of message that is filled in by a customer on the frontend.
 
Adding Website URL to the E-Mail Template
It is possible to create links to the website in the e-mail template. In order to do this just place the link to the page without specifying the domain name. Place [WEBSITEDOMAIN] variable instead of it, thus the backoffice will take the website domain of your production environment and will add it to the link automatically. For example, if you want to create the direct link to the home page of your website add the following line to the e-mail template text: [WEBSITEDOMAIN]/default.aspx 
 
The shop information which is used for all system e-mails (shop name, shop phone number, e-mail addresses) can be changed in the Sana Commerce backoffice: Settings -> General. More information can be found here.
User GuideContent