Skip to main content
Reference

Email Template Variables

Individual emails will also have additional variables. For example, the receipt template will have the $order variable. Please consult existing examples for specific variables.

Template NameAbbreviation
auto_order_cancelCAN
auto_order_confirmationCON
auto_order_preshipmentPRE
auto_order_update_billing_declineBD
auto_order_update_billingB
customer_feedbackCF
digital_deliveryDD
Variable NameVariable TypeCANCONPREBDBCFDDGRQQRRRFSNComments
$autoOrderCodestringXXunique id for auto order
$autoOrderCancelLinkstringXlink for customer to cancel order
$beoebooleanXXXtrue if order was entered manually using the backend order entry tool
$chargeAppearsOnStatementAsstringXXXX
$creationDatestringXXXXX
$creationDateRaw[Date](/developer/storefront/storefront-object-model/date-sfo)XXXXXUseful for formatting the date into a different timezone. See $formatHelper.formatDate.
$customField1stringXXXXXXX
$customField2stringXXXXXXX
$customField3stringXXXXXXX
$customField4stringXXXXXXX
$customField5stringXXXXXXX
$customField6stringXXXXXXX
$customField7stringXXXXXXX
$customerNamestringXXXXXXXXXXXXX
$customerFirstNamestringXXXXXXXXXXXXX
$customerServiceEmailstringXXXXXXXXXXXX
Variable NameVariable TypeCANCONPREBDBCFDDGRQQRRRFSNComments
$customerShipToNamestringXXX
$deliveryDatestringXX
$deliveryDateRaw[Date](/developer/storefront/storefront-object-model/date-sfo)XXUseful for formatting the date into a different timezone. See $formatHelper.formatDate.
$emailstringXXXXX
$expirationstringXexpiration of digital content
$expirationRaw[Date](/developer/storefront/storefront-object-model/date-sfo)Xexpiration of digital content
Useful for formatting the date into a different timezone. See $formatHelper.formatDate.
$giftMessagestringX
htmlDivOrderstringXXXXXXXXXXXorder text formatted with div tags (high customization)
htmlTableOrderstringXXXXXXXXXXXorder text formatted with tables (robust)
htmlEmailOrderstringXXXXXXXXXXXorder text formatted for emails
$i18n[I18n](/developer/storefront/storefront-object-model/i18n-sfo)XXXXXXXXXXXXX
$instructionsstringXX
$linkstringXdownload link for digital content
$merchantCommentsstringX
$merchantNamestringXXXXXXXXXXXXX
$messagestringXmessage from merchant to customer
$messageDate[Date](/developer/storefront/storefront-object-model/date-sfo)Xdate of the customer feedback message
Variable NameVariable TypeCANCONPREBDBCFDDGRQQRRRFSNComments
$order[Order](/developer/storefront/storefront-object-model/order-sfo)XXXXXXXXXX
$orderHelper[OrderHelper SFO](./orderhelper.md)XXXXXXXXXX
$orderIdstringXXXXXXXXXXX
$orderSummarystringXXXXXXXXXXorder summary as plain text
$orderSummaryHtmlstringXXXXXXXXXXorder summary with html markup
$originalDate[Date](/developer/storefront/storefront-object-model/date-sfo)XXX
$paymentMethodstringXX
$phonestringXXXXXXXXXXXXX
$preshipmentCancelLinkstringXcustomer may use this link to cancel auto order
$preshipmentItemDescriptionstringX
$preshipmentItemIdstringX
$preshipmentItemCoststring X
$preshipmentNextDate[Date](/developer/storefront/storefront-object-model/date-sfo)Xdate of next shipment
$preshipmentNextItemQuantitynumberX
$preshipmentNextItemIdstringX
$preshipmentNextItemDescriptionstringX
Variable NameVariable TypeCANCONPREBDBCFDDGRQQRRRFSNComments
$purchaseOrderNumberstringXXXX
$quoteReviewLinkstringXXhyperlink to the full quote online
$refundTotalstringX
$returnPolicystringXXXXXXXXXXXXX
$shipDatestringX
$shipDateRaw[Date](/developer/storefront/storefront-object-model/date-sfo)XUseful for formatting the date into a different timezone. See $formatHelper.formatDate.
$shippingMethodstringXXXXXXXXX
$shippingTrackingNumbersNoURLstring[ ]**X**notice Numbers is plural. this is all tracking numbers
$shippingTrackingNumbersstring[ ]**X**notice Numbers is plural. this is all tracking numbers
$shippingTrackingNumberNoURLstringX
$shippingTrackingNumberNoURL2stringX
$shippingTrackingNumberNoURL3stringX
$shippingTrackingNumberNoURL4stringX
$shippingTrackingNumberNoURL5stringX
$shippingTrackingNumberstringX
$shippingTrackingNumber2stringX
$shippingTrackingNumber3stringX
$shippingTrackingNumber4stringX
$shippingTrackingNumber5stringX
Variable NameVariable TypeCANCONPREBDBCFDDGRQQRRRFSNComments
$site[Site](/developer/storefront/storefront-object-model/site-sfo)XXXXXXXXXXXXX
$textOrderstringXXXXXXXXXXXXorder as pre-formatted text (see html*Order fields)
$updateLinkstringXXXXlink customer may use to update their auto order information
Was this page helpful?