Page tree
Skip to end of metadata
Go to start of metadata
Subscribe Pro email templates, by default, contain variables that are used to display particular values unique to your Magento Store and the Subscription Orders that your customers have placed. 
 

Its important to understand these variables so you can customize your templates further, as they are listed on the Email Templates Types here.

For variables containing dates/times, you can affix the variable with the "|date('format')" modifier to choose the format for your date, following the PHP date formatting rules: http://php.net/manual/en/function.date.php. For example: {{ variable|date('M d, Y') }}

Subscribe Pro Email Variables Defined:

Email VariableVariable ExplainedCustomer Facing EmailsAdmin Emails

{{ customerId }}

The Subscribe Pro customer ID for the subscription.

(tick) 

{{ customerServiceEmail }}

The email for your support as defined in the Subscribe Pro Platform account settings.

(tick) 

{{ customerServicePhone }}

The phone number for your support in the Subscribe Pro Platform account settings.

(tick) 

{{ magentoFrontendUrl }} 

The url to the customer facing side of your Magento store

(tick)
 

{{ magentoAdminUrl }} 

The url to the administration panel of your Magento store

(tick) 

{{ storeLogoUrl }}

The url to the logo you upload in Subscribe Pro Platform.

(tick) 

{{ storeName }}

The name of your Magento store as defined in the Subscribe Pro Platform account settings.

(tick) 

{{ templateImagesUrl }} 

The root directory that holds your template related images (typically '/images' by default)

(tick) 

{{ fullName }},

{{ name }}

The customer's full name as filled out in their customer profile. Note: Either {{ fullName }} or {{ name }} may be used, as they contain the same information.

(tick) 

{{ firstName }}

The customer's first name, as filled out in their customer profile.

(tick) 

{{ middleName }}

The customer's middle name as filled out in their customer profile.

(tick) 

{{ lastName }}

The customer's last name as filled out in their customer profile.

(tick) 

{{ email }}

The customer's email address as filled out in their customer profile.

(tick) 

{{ subscriptionCreatedDateTime }}

The date and time the subscription was created.

(tick) 

{{ subscriptionNextOrderDate }}

The next shipping date for the product ordered in the subscription.

(tick) 

{{ subscriptionCardNumber }},

{{ subscriptionCardLastDigits }}

The last four digits of the credit card.

(tick) 

{{ subscriptionCardType }}

The card type (e.g. Visa, Master Card, etc.)

(tick) 

{{ subscriptionInterval }}

The time in between subscription shipments for this particular order as defined by the customer for the first subscription in the order.

Note that individual products in the order may have their own intervals, stored in {{ item.productInterval }}. This variable is meant to be used outside of the product loop.

(tick) 

{{ subscriptionCouponCode }} 

If there is a valid coupon code applied to the whole Subscription, it will be displayed with this variable code

(tick) 

{{ item.subscriptionId }}

The subscription ID associated with the subscription product.

(tick) 

{{ item.productName }}

The product name of the item in the subscription order

(tick) 

{{ item.productSku }}

The unique product number identifier of the item in the subscription order

(tick) 
{{ item.productInterval }}The interval used for this individual product.(tick) 

{{ item.qty }} 

The number / quantity of items in the subscription order

(tick) 

{{ item.price }}

The price of 1 item in the subscription order

(tick) 

{{ item.discount * 100 }}

The discount applied (* 100) to the product item in the subscription order, in percent (%). This is separate and before the subscription wide coupon code is applied

(tick) 
{{ item.discountText }}The discount text as shown on the product page(tick) 
{{ item.is_discount_percentage }}A boolean variable for determining whether or not the discount for this product is a percentage or a fixed value.(tick) 

{{ item.errorClass }}

The error class for a failed subscription. Example: soft_decline, magento, hard_decline, payment_card, technology.

Note: An explanation for each class of error is available at the following link under the Retry Schedule heading: Automatic Ordering

(tick)

 

{{ item.errorClassText }}

The text explaining what an error class means. Note that this is not the actual error message, which is available in {{ item.errorMessage }}.

(tick) 

{{ item.errorMessage }}

The actual error message explaining why a subscription failed.

(tick) 
{{ item.productNextOrderDate }}The next order date of the subscription.(tick) 
{{ item.productLastOrderDate }}The date of the most recent order of the subscription.(tick) 
{{ item.productExpirationDate }}The expiration date of the subscription.(tick) 
{{ item.fixedPrice }}The fixed price set on a subscription, if any.(tick) 
{{ item.useFixedPrice }}Whether or not this subscription uses a fixed price.(tick) 
{{ subscriptionMagentoShippingAddressId }}The Magento Address ID for the shipping address.(tick) 
{{ subscriptionMagentoBillingAddressId }}The Magento Address ID for the billing address.(tick) 

{{ shippingAddressFirstName }}

The first name used in the shipping address

(tick)  

{{ shippingAddressLastName }}

The last name used in the shipping address

(tick)  

{{ shippingAddressCompany }}

The company used in the shipping address

(tick)  

{{ shippingAddressStreet1 }}

The street address used for shipping

(tick)  

{{ shippingAddressStreet2 }}

The optional second line of the street address used for shipping

(tick)  

{{ shippingAddressCity }}

The city used for shipping

(tick)  

{{ shippingAddressRegion }}

The region (state) used for shipping

(tick)  

{{ shippingAddressPostcode }}

The zip/postal code used for shipping

(tick)  

{{ shippingAddressCountry }}

The country used for shipping

(tick)  

{{ subscribeProUrl }}

The url to the Subscribe Pro Platform web app login.

 (tick)

{{ JobEndDateTime | date('Y-m-d H:i:s') }}

The end date and time stamp for the batch of orders that were processed within a defined period of time.

 (tick)

{{ subscriptionsProcessedCount }}

The total count of subscriptions successfully processed and/or failed that your customers placed within their subscriptions within a defined period of time.

 (tick)

{{ jobID }}

The id number of the job relating to a batch of orders processed that had successful/failed responsed. This ID number is used to communicate with the Subscribe Pro support team for questions about the group/batch of orders.

 (tick)

{{ successfulOrdersCount }}

The total count of subscription orders successfully processed from subscriptions placed by your customers within a defined period of time.

 (tick)

{{ failedOrdersCount }}

The total count of failed subscription orders that did not go through successfully from subscriptions placed by your customers within a defined period of time.

 (tick)
Adaptavist ThemeBuilder EngineAtlassian Confluence