After July 2021, the 2.3.x release line no longer received quality updates or user guide updates. PHP 7.3 reached end of support in December 2021, and Adobe Commerce 2.3.x reached end of support in September 2022. We strongly recommend upgrading to Adobe Commerce 2.4.x to help maintain PCI compliance.

Variable Reference

This site contains archived merchant documentation for a version of Adobe Commerce and Magento Open Source that has reached end-of-support. The documentation available here is intended for historical reference only and is not maintained. The Adobe Commerce Merchant Documentation for current releases is published on the Adobe Experience League.

Most email templates have a section of predefined variables that are specific to the template. The following list includes examples of frequently-used email templates and their associated variables.

Email Template Variables

Variable Markup Tag
Email Footer Template {{template config_path=”design/email/footer_template”}}
Email Header Template {{template config_path=”design/email/header_template”}}
Email Logo Image Alt {{var logo_alt}}
Email Logo Image URL {{var logo_url}}
Email Logo Image Height {{var logo_height}}
Email Logo Image Width {{var logo_width}}
Template CSS {{var template_styles|raw}}

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}}

New Order Template Variables

Variable Markup Tag
Billing Address {{var formattedBillingAddress|raw}}
Email Order Note {{var order.getEmailCustomerNote()}}
Order ID {{var order.increment_id}}
Order Items Grid {{layout handle=”sales_email_order_items” order=$order area=”frontend”}}
Payment Details {{var payment_html|raw}}
Shipping Address {{var formattedShippingAddress|raw}}
Shipping Description {{var order.getShippingDescription()}}