1

Variables

Filipe Sá

Last Update a day ago



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.




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:



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:



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



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:

Object Availability
TypeObjectExample
EverywhereSubscriber{{var subscriber.getName()}}
{{var subscriber.getEmail()}}
Form – New EntryFrom{{var form.getTitle()}}
Form – New EntryFrom{{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 OrderOrder{{var order.getIncrementId()}}
{{var order.getCustomerName()}}
{{var order.getGrandTotal()}}
{{var order.getCustomerEmail()}}
Order - Bought Specific ProductOrder{{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()}}

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us