Docs
STEP 2-5

Email template variables

Variables are available in the template for the Checkout+ "Cashback coupon issued" email. Using variables lets you generate emails that reflect the details of each order.

The variables on this page are only for the Checkout+ "Cashback coupon issued" email. The variables available in Try Before You Buy, return, and cancellation templates are different.

Variable list

PropertyDescriptionExampleUsable in
recustomer_cssCSS defined by Recustomer. Removing it is not recommended (the email layout will break)Body
mail_titleThe email subject[Coupon issued] A coupon has been added to your order at Test Store.Body
brand_nameDisplays the brand name from the customization screenTest Brand StoreSubject, body
brand_logo_urlDisplays the brand logo from the customization screen. Used for the logo image in the email headerhttps://test-store.com/logo.pngSubject, body
footer_logo_urlURL of the logo image displayed in the email footerBody
store_nameDisplay name of the store where the order was placed. This is a different value from the brand name (brand_name)Test StoreSubject, body
store_shopping_urlThe store's shopping URL for customers. Used as the link for the "Shop with your coupon" buttonhttps://test-store.comSubject, body
recipient_name_displayDisplays the recipient name. If the customer name cannot be retrieved, a generic salutation is usedTaro SatoBody
order_numberOrder number#1000Body
ordered_atOrder date2024/01/01 10:00Body
coupon_codeThe issued coupon code. The code the customer enters at checkoutABCD1234Subject, body
discount_amountCoupon discount amount (formatted with thousands separators)1,000Subject, body
discount_currencyCurrency symbol of the discount amount. Use together with the amount¥Subject, body
expires_at_displayCoupon expiration date. For coupons with no expiration, the variable itself does not exist (see Variables that may have no value)2024/04/01Subject, body
minimum_subtotal_displayMinimum purchase amount required to use the coupon. For coupons with no minimum, the variable itself does not exist (see Variables that may have no value)¥5,000Subject, body

Different variables are available in the subject and body

Only information that is fixed before the order occurs (brand, store, coupon) can be used in the subject.

Variables available in the body only

mail_title, recustomer_css, order_number, ordered_at, recipient_name_display, and footer_logo_url can be used in the body only. If written in the subject, no value is displayed.

Variables that may have no value

Depending on the conditions, expires_at_display and minimum_subtotal_display may not exist at all.

  • expires_at_display: when the coupon has no expiration date
  • minimum_subtotal_display: when the coupon has no minimum purchase amount

If written as is, the surrounding sentence remains with an empty value. Wrap them in a conditional as follows.

Expiration (example that displays "No expiration" when there is none)

※ Expires: {% if expires_at_display %}{{ expires_at_display }}{% else %}No expiration{% endif %}

Minimum purchase amount (example that hides the whole line when there is no minimum)

{% if minimum_subtotal_display %}
※ Valid on purchases of {{ minimum_subtotal_display }} or more
{% endif %}

Example

An example of the section that displays the coupon information.

<p>
  Dear {{ recipient_name_display }},<br>
  Thank you for shopping at {{ store_name }}.<br>
  A coupon has been issued as a benefit of your order {{ order_number }}.
</p>

<p>Credit earned: {{ discount_currency }} {{ discount_amount }}</p>
<p>Coupon code: {{ coupon_code }}</p>

<a href="{{ store_shopping_url }}">Shop with your coupon</a>

How to write variables

Always wrap variables in {{ }}. If you forget the braces, the variable name is displayed as plain text.

© Recustomer, Inc.