Skip to main content

Variables that can be used in any transactional email

VariableDescription
{{store url=""}}Store website address.
{{var logo_url}}URL of store logo
{{var logo_alt}}Alternative text for store logo if image is unavailable.
{{var store.getFrontendName()}}Store name (as defined in system configurations)
{{var store url="customer/account/"}}Web address of customer accounts page.
{{config path='trans_email/ident_support/email'}}Support email address (as defined in store configuration)
{{config path='general/store_information/phone'}}Store phone number (as defined in store configuration)
{{config path="general/store_information/address"}}Store address (as defined in store configuration)
{{store url="adminhtml/system_account"}}Link address for admin login page.

New Order (and New Order for Guest)

VariableDescription
{{htmlescape var=$order.getCustomerName()}}* For New Order only, Name of customer as defined in Customer Information for order
{{var order.increment_id}}Order identification number.
{{var order.getCreatedAtFormated('long')}}Date and time this current order was created
{{var order.getBillingAddress().format('html')}}Complete billing address for HTML emails
{{var payment_html}}Payment method (formatted for HTML emails)
{{var order.getShippingAddress{}.format('html')}}Complete shipping address for HTML emails
{{var order.getShippingDescription()}}Shipping method for order
{{layout handle="sales_email_order_items" order=$order}}Displays line items, SKU number, qty, subtotal, and total order information.
{{htmlescape var=$order.getBillingAddress().getName()}}* For New Order for Guest only, Name of customer as defined in Billing address for the order

New Invoice (and New Invoice for Guest)

VariableDescription
{{htmlescape var=$order.getCustomerName()}}*For New Invoice only, Name of customer as defined in Customer Information for order
{{var invoice.increment_id}}Invoice identification number
{{var order.increment_id}}Order identification number
{{var order.billing_address.format('html')}}Billing address as per order information (in HTML format)
{{var payment_html}}Payment method formatted for HTML emails.
{{var order.shipping_address.format('html')}}Complete billing address formatted for HTML emails
{{var order.shipping_description}}Shipping method for order
{{var comment}}Comments that have been noted with the invoice. Only shown when you checkmark the checkbox “Email copy of invoice" and checkmark "Append comments".
{{htmlescape var=$billing.getName()}}* For New Invoice for Guest only, Customer name as defined in billing information for order.

New Shipment (and New Shipment for Guest)

VariableDescription
{{var shipment.increment_id}}Shipment identification number.
{{var order.increment_id}}Order identification number.
{{var shipment.increment_id}}Shipment identification number.
{{var order.billing_address.format('html')}}Complete billing address formatted for HTML emails
{{var payment_html}}Payment method formatted for HTML emails.
{{var order.shipping_address.format('html')}}Complete shipping address formatted for HTML emails.
{{var order.shipping_description}}Shipping method.
{{htmlescape var=$billing.getName()}}* For New Shipment For Guest only, Customer name as defined in billing information for order.
{{var comment}}Comments that have been noted with the shipment. Only shown when you checkmark the checkbox “Email copy of invoice" and checkmark “Append comments".

New Credit Memo (and New Credit Memo for Guest)

VariableDescription
{{htmlescape var=$order.getCustomerName()}}* For New Credit Memo only, Customer name (as per order information)
{{var order.increment_id}}Order identification number
{{var order.getStatusLabel()}}Current status of the order.
{{var comment}}Comments (if any) that were left with the credit memo. Displayed when checkboxes "Email copy of credit memo" and "Append comments" are checkmarked.
{{htmlescape var=$billing.getName()}}* For New Credit Memo For Guest only, Customer name as defined in billing information for order.

Order Update (and Order Update for Guest)

VariableDescription
{{htmlescape var=$order.getCustomerName()}}* For Order Update only, Customer name (as per order information).
{{var order.increment_id}}Order identification number
{{var order.getStatusLabel()}}Current status of the order.
{{htmlescape var=$billing.getName()}}* For Order Update for Guest only, Customer name as defined in billing information for order.

Shipment Update (and Shipment Update for Guest)

VariableDescription
{{htmlescape var=$order.getCustomerName()}}* For Shipment Update only, Customer name (as per order information)
{{htmlescape var=$billing.getname()}}* For Order Update for Guest only, Customer name as defined in billing information for order
{{var order.increment_id}}Order identification number
{{var order.getStatusLabel()}}Current status of the order

Store Credit Update

VariableDescription
{{var name|escape}}Name of the customer whose credit has been updated.
{{var balance}}Store credit balance.

Contact Form

Gift Card Account Sent from Edit Page

VariableDescription
{{var data.name}}Name (from the name field in the contact form)
{{var data.email}}Email Address (email field in contact form)
{{var data.telephone}}Phone Number (phone number field in contact form)
{{var data.comment}}Comments (comment text box in contact form)
VariableDescription
{{var name|escape}}The name on the gift card.
{{var code|escape}}The gift card code. This code is typed in at checkout to use the balance on the gift card for an order.
{{var balance}}The balance on the gift card.

Gift Card Account Sent from Gift Card

VariableDescription
{{var name|escape}}The name on the gift card.
{{var code|escape}}The gift card code. This code is typed in at checkout to use the balance on the gift card for an order.
{{var balance}}The balance on the gift card.
{{var store.getFrontendName()}}Store name
{{var sender_name_with_email|escape}}Name and email address of the gift card sender.
{{var giftcards}}Gift card code(s) -- can be more than one.
{{var gift_message|escape|n12br}}Message from the sender included with gift card(s).

Send Product to a Friend

VariableDescription
{{var name}}Name inputted in "send product to a friend" form
{{var product_url}}Link address of the product
{{var product_name}}Name of the product being sent
{{var message}}Message included in "send product to a friend" form

Share Wishlist

VariableDescription
{{var customer.name}}Name of customer sharing the wishlist.
{{var message}}Message included by customer when sharing wishlist. (In wishlist sharing form)
{{var items}}Items in the wishlist.
{{var viewOnSiteLink}}Link to view wishlist directly on website.

Newsletter Subscription Confirmation

New Account

VariableDescription
var subscriber.getConfirmationLink()}}Newsletter subscription confirmation link. User must click this link to confirm their subscription.
VariableDescription
{{var customer.name}}Name of customer
{{var customer.email}}Email address / login for the customer account.
{{htmlescape var=$customer.password}}Password for new customer account.

New Account Confirmation

VariableDescription
{{var customer.name}}Name of customer
{{var customer.email}}Email address / login for the customer account.
{{htmlescape var=$customer.password}}Password for new customer account.
{{store url="customer/account/confirm/" _query_id=$customer.id _query_key=$customer.confirmation _query_back_url=$back_url}}Account confirmation key -- link address that customer must click to activate their account.

New Account Confirmed

VariableDescription
{{var customer.name}}Name of customer
{{var customer.email}}Email address / login for the customer account.
{{htmlescape var=$customer.password}}Password for new customer account.

New Administrative Password

VariableDescription
{{htmlescape var=$user.name}}Name of administrator.
{{htmlescape var=$password}}Password of administrator.
{{var user.name}}Administrative user name.

New Password

VariableDescription
{{htmlescape var=$customer.name}}Name of customer.
{{htmlescape var=$customer.password}}Password of customer.

Task Notification

Payment Failed

VariableDescription
{{var message}}Message/content of a new task. (i.e. Import customers task, Refresh search index task)
VariableDescription
{{var reason}}Reason for payment failure.
{{var checkoutType}}Checkout type.
{{var customer}}Customer name
{{var customerEmail}}Customer e-mail address
{{var items}}Line items in the shopping cart order.
{{var total}}Total order amount.
{{var billingAddress.format('html')}}Complete billing address for HTML emails
{{var shippingAddress.format('html')}}Complete shipping address for HTML emails
{{var shippingMethod}}Shipping method
{{var paymentMethod}}Payment method
{{var dateAndTime}}Date and time order was made.

Product Alerts Cron Error

VariableDescription
{{var warnings}}Warnings generated by cron for product alerts.

Product Price Change Alert & Product Stock Alert

VariableDescription
{{var customerName}}Customer name.
{{var alertGrid}}Grid of product alerts.

Comments

  1. How come I can't use {{var.comment}} with New Order (and New Order for Guest) ?

    ReplyDelete

Post a Comment

Popular posts from this blog

HTML Emailing in ZF2

<?php namespace Application\Model; use Zend\Mail\Message; use Zend\Mime\Message as MimeMessage; use Zend\Mime\Part as MimePart; use Zend\Mail\Transport\Sendmail as SendmailTransport; use Zend\Mail\Transport\Smtp as SmtpTransport; use Zend\Mail\Transport\SmtpOptions; use Zend\View\Renderer\PhpRenderer; use Zend\View\Resolver\TemplatePathStack; use Zend\View\Model\ViewModel; use Zend\View\Model\ModelInterface; class ApiEmail extends ApiInterface {    protected $From = "XXXXX@gmail.com";    protected $FromName = "XXXX";    protected $To = "" ;    protected $Subject = "" ;    protected $Body = "" ;    protected $Cc = "XXXXXX@gmail.com";    protected $Bcc = "XXXXX@gmail.com" ;    protected $ReplyTo = "XXXX@gmail.com" ;    protected $Sender = "" ;    protected $Encoding = "UTF-8" ;    protected $MESSAGE ; // getter setter    public fun

How to start working with Django web framework

 Django is a powerful web framework for Python that makes it easy to build web applications quickly. Here are some steps you can follow to start learning Django programming: Install Python: Django requires Python to be installed on your machine. If you don ' t already have Python installed, you can download it from the official Python website (https://www.python.org/downloads/). Install Django: Once you have Python installed, you can use the pip package manager to install Django. Open a terminal or command prompt and type the following command: pip install django Create a new Django project: To create a new Django project, open a terminal or command prompt and navigate to the directory where you want to store your project. Then run the following command: django - admin startproject myproject Replace myproject with the name you want to give to your project. This will create a new Django project with the specified name in the current directory. Run the development

How to setup django | django installation ubuntu

Introduction to Django 1.     High level web framework 1.     Basic modules, classes, and tools to quickly develop and deploy web apps 2.     Contains an ORM (Object-Relational Mapper) that allows for the use of standard Python language syntax when interfacing with a back-end database. 1.     Developer need not learn SQL, DDL, etc! 3.     Provides a template framework that allows HTML, XML, and other “documents” to be converted into “templates”, which can then be converted to “output” via a wide range of substitution techniques. 4.     Elegant URL support (fancy, beautiful URL's, no “?blah=blah”, etc.) 5.     Multi-lingual 2.     Fast and easy to use, robust, flexible, and lots of contributed components available! 1.     Built in administrative interface to manage data models. 2.     Built-in authentication/access control components 3.     Contributed Installing & Configuring Django Components 1.     Django can be downloaded from http://w