Variables


You can use variables in your messages that will be replaced by the actual information.


Variables are not limited to subscriber information. Some variables are only available for autoresponders. Within autoresponders, variables availability depends on the type of autoresponder.



Variables are available for SMS and Email campaigns.

How are variables parsed?


Variables are parsed by Magento® itself and not by the extension. This adds more power to the variables used. Variables instantiate Magento® objects and return information by the specified method.


For example:

{{var subscriber.getEmail()}}


Will load the “subscriber” model and call the “getEmail()” method.


You can replace “getEmail()” for any available method in the subscriber template. This is true to all other variables.

For example, in autoresponders related to order, the “order” model is available with all respective methods.


You can call for example:

{{var order.getCustomerEmail()}}
{{var order.getGrandTotal()}}
{{var order.getCreatedAt()}}


If the autoresponder as a product available, you can call product methods, like:


{{var product.getName()}}
{{var product.getPrice()}}
{{var product.getDescription()}}
{{var product.getQty()}}


In fact, you can call any product attribute this way. If you have an attribute with the code “custom_specs”, you can call this information like this:


{{var product.getCustomSpecs()}}


Object Availability


Type
Object
Example
Everywhere
Subscriber
{{var subscriber.getName()}}
{{var subscriber.getEmail()}}
Campaign
{{var campaign.getInternalName()}}
{{var campaign.getSubject()}}
Form – New Entry
From
{{var form.getTitle()}}
Entry
{{var entry.getField1()}}
{{var entry.getField2()}}
Autoresponders type:
Review – New
Review - Status Changes to Approved
Review - On a Bought Product
 
Review
{{var review.getTitle()}}
{{var review.getDetail()}}
{{var review.getNick()}}
Product
{{var product.getName()}}
{{var product.getPrice()}}
{{var product.getDescription()}}
{{var product.getQty()}}
Autoresponders type:
Shipment - Tracking Added to Shipment / New Ship. W/ Tracking)
Shipment
{{var shipment.getCreatedAt()}}
{{var shipment.getPackages()}}
{{var shipment.getCustomerNote()}}
Order
{{var order.getIncrementId()}}
{{var order.getCustomerName()}}
{{var order.getGrandTotal()}}
{{var order.getCustomerEmail()}}
custom
{{track_title}} {{track_code}}  {{order_id}}
Shipment - New Shipment (NO tracking number)
Shipment
{{var shipment.getCreatedAt()}}
{{var shipment.getPackages()}}
{{var shipment.getCustomerNote()}}
Order
{{var order.getIncrementId()}}
{{var order.getCustomerName()}}
{{var order.getGrandTotal()}}
{{var order.getCustomerEmail()}}
Order - New Order
Order
{{var order.getIncrementId()}}
{{var order.getCustomerName()}}
{{var order.getGrandTotal()}}
{{var order.getCustomerEmail()}}
Order - Bought Specific Product
Order
{{var order.getIncrementId()}}
{{var order.getCustomerName()}}
{{var order.getGrandTotal()}}
{{var order.getCustomerEmail()}}
Product
{{var product.getName()}}
{{var product.getPrice()}}
{{var product.getDescription()}}
{{var product.getQty()}}
Product - Expected Reorder Time reached (before)
Product
{{var product.getName()}}
{{var product.getPrice()}}
{{var product.getDescription()}}
{{var product.getQty()}}