Skip to main content

Variables

This page contains a list of variables that can be used in notification templates.

Event variables

VariableDescription
{{event.toString}}Default event message output

Quote variables

VariableDescription
{{quote.customer_email}}Customer email associated with the cart
{{quote.product_availability}}Availability of products in the shopping cart
{{quote.subtotal}}Cart subtotal amount
{{quote.summary_count}}Total number of unique products in the cart
{{quote.summary_qty}}Total quantity of all products in the cart

Customer variables

VariableDescription
{{customer.avgsale}}Average order value
{{customer.confirmation}}Customer confirmation status
{{customer.created_at}}Date and time when the account was created
{{customer.created_in}}Store view where the account was created
{{customer.default_billing}}Default billing address
{{customer.default_shipping}}Default shipping address
{{customer.disable_auto_group_change}}Disable automatic group change based on VAT ID
{{customer.dob}}Date of birth
{{customer.email}}Customer email
{{customer.failures_num}}Number of failed login attempts
{{customer.firstname}}First name
{{customer.gender}}Gender
{{customer.group_id}}Customer group ID
{{customer.is_subscriber}}Newsletter subscription flag
{{customer.last_activity}}Days since last activity
{{customer.lastname}}Last name
{{customer.lifetime_sales}}Total lifetime sales amount
{{customer.lock_expires}}Lock expiration time (after failed logins)
{{customer.middlename}}Middle name or initial
{{customer.number_of_orders}}Total number of orders placed
{{customer.prefix}}Name prefix (e.g., Mr., Ms.)
{{customer.reviews_count}}Number of product reviews written by the customer
{{customer.store_id}}Store ID where the account belongs
{{customer.subscription_status}}Current newsletter subscription status
{{customer.suffix}}Name suffix (e.g., Jr., Sr.)
{{customer.taxvat}}Tax/VAT number
{{customer.updated_at}}Date and time when the account was last updated
{{customer.website_id}}Website ID associated with the customer
{{customer.first_failure}}Date of the first failed login attempt

Store variables

VariableDescription
{{store.base_url}}Base URL of the store
{{store.frontend_name}}Store display name
{{store.lifetime}}Store lifetime sales amount
{{store.num_orders}}Total number of store orders

Shipping variables

VariableDescription
{{shipping.city}}Shipping city
{{shipping.country_id}}Shipping country code
{{shipping.postcode}}Shipping postal code
{{shipping.region}}Shipping region name
{{shipping.region_id}}Shipping region ID