Email Header
The default header includes your email logo that is linked to your store. You can easily insert variables to add store contact information to the header. To make more extensive changes requires a working knowledge of both HTML and CSS. On the server, the header template is located at:
-
[Magento install dir]/app/locale/en_US/template/email/html/header.
When working in the template code, be careful not to overwrite anything that is enclosed in double braces.
1. | In the Template Name field, enter a name for your custom header. |
2. | In the Template Content box, modify the HTML as needed. |
3. | To insert a variable, position the cursor in the code where you want the variable to appear, and click the Insert Variable button. Then, do the following: |
a. | In the list of Store Contact Information variables, click the variable that you want to insert. |
You are not limited to the variables in this list, although they are the ones most often included in the header. You can actually type the code for any system variable directly into the template.
b. | Click the Preview Template button. Then, make any adjustments to the template that are needed. |
4. | When complete, click the Save Template button. |
Your custom header now appears in the list of Transactional Email templates.
1. | On the Admin menu, select System > Configuration. Then in the panel on the left, under General, select Design. |
2. | If necessary, set the Current Configuration Scope to the website, store, or store view where the header will be used. |
3. | Click to expand the Transactional Emails section, and do the following: |
a. | If the header is for a specific view, clear the Use Website checkbox that is next to the Email Header Template field. |
b. | Set Email Header Template to the name of the custom header that you just created. |
4. | When complete, click the Save Config button. |
Field Descriptions
-
Field
Description
Load default template
Template
Lists the selection of available templates, and identifies the template to be customized.
Identifies the locale where the template is to be used.
Template Information
Template Name
The name of your custom template.
Template Subject
(N/A) This field isn’t used for header templates.
Template Content
The content of the template, in HTML.
Template Styles
(N/A) This field is not used for header templates.
Store Contact Information Variables
-
Variable
Markup Tag
Base Unsecure URL
{{config path="web/unsecure/base_url"}}
Base Secure URL
{{config path="web/secure/base_url"}}
General Contact Name
{{config path="trans_email/ident_general/name"}}
General Contact Email
{{config path="trans_email/ident_general/email"}}
Sales Representative Contact Name
{{config path="trans_email/ident_sales/name"}}
Sales Representative Contact Email
{{config path="trans_email/ident_sales/email"}}
Custom1 Contact Name
{{config path="trans_email/ident_custom1/name"}}
Custom1 Contact Email
{{config path="trans_email/ident_custom1/email"}}
Custom2 Contact Name
{{config path="trans_email/ident_custom2/name"}}
Custom2 Contact Email
{{config path="trans_email/ident_custom2/email"}}
Store Name
{{config path="general/store_information/name"}}
Store Contact Telephone
{{config path="general/store_information/phone"}}
Store Contact Address
{{config path="general/store_information/address"}}