Magento Open Source, 2.0.x

Magento 2.0.18 is the final 2.0.x release. After March 2018, Magento 2.0.x will no longer receive security patches, quality fixes, or documentation updates. To maintain your site's performance, security, and PCIPayment Card Industry: Refers to debit and credit cards and their associated businesses. compliance, upgrade to the latest version of Magento.

Variable Reference

Most email templates have a section of additional variables that are specific to the template. The following are examples of some frequently used 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 Phone Telephone

    {{config path="general/store_information/phone"}}

    Store Hours

    {{config path="general/store_information/hours"}}
    

    Country

    {{config path="general/store_information/country_id"}}

    Region/State

    {{config path="general/store_information/region_id"}}

    Zip/Postal Code

    {{config path="general/store_information/postcode"}}

    City

    {{config path="general/store_information/city"}}

    Street Address 1

    {{config path="general/store_information/street_line1"}}

    Street Address 2

    {{config path="general/store_information/street_line2"}}

    Store Contact Address

    {{config path="general/store_information/address"}}
    								
  • New Account Template Variables

    Variable

    Markup Tag

    Customer Account URL

    {{var this.getUrl($store, 'customer/account/')}}

    Customer Email

    {{var customer.email}}

    Customer Name

    {{var customer.name}}