---
title: Transactional Emails Templates/Variables
slug: oms/transactional-emails-templatesvariables
docTags: 
createdAt: 2022-07-18T12:28:37.000Z
---



:::ExpandableHeading
### Introduction

Transactional Emails are the mandatory post-purchase email communications you can send to customers. These emails are content managed in Contentful or Sanity and set via our email services.‌
:::

:::ExpandableHeading
### Default Email Templates&#x20;

**Subscriptions (email name: slug)**
Subscription Reminder Email: subscription\_default\_reminder
Subscription Last Chance Reminder Email: subscription\_last\_chance\_reminder



::File{src="https://api.archbee.com/api/presign/TmutqdeXiIw-V3gBZXVjd/o6F7pJe8bj9_hCLW_mXFD_subscriptionemail.json" label="subscription_email.json" isUploading="false"}



**Stock Requests (email name: slug)**
Item Back In Stock Email: back\_in\_stock



::File{src="https://api.archbee.com/api/presign/TmutqdeXiIw-V3gBZXVjd/3kJ3cKoK66BMIe_swQ7-e_stockrequstemail.json" label="stock_requst_email.json" isUploading="false"}



**Reimbursements (email name: slug)**
Order Reimbursement Email: reimbursement\_email



::File{src="https://api.archbee.com/api/presign/TmutqdeXiIw-V3gBZXVjd/FWz_UwJlivq8IyDbbr1L9_reimbursementemail.json" label="reimbursement_email.json" isUploading="false"}



**Refunds (email name: slug)**
(The same email template is used for refunds/reimbursements, they are two different things that coincide with a refund of money and/or an exchange)
Order Refund Email: reimbursement\_email



::File{src="https://api.archbee.com/api/presign/TmutqdeXiIw-V3gBZXVjd/0ILimTy2whyKw5_GeiJoY_refundemail.json" label="refund_email.json" isUploading="false"}



**Referrals (email name: slug)**
Reward Confirmation Email‌: reward\_confirmation
Referral Prompt Email: referral\_prompt



::File{src="https://api.archbee.com/api/presign/TmutqdeXiIw-V3gBZXVjd/jWPaaGM87vPPOqlrQxl7X_referralemail.json" label="referral_email.json" isUploading="false"}



**Orders (email name: slug)**
Order Confirmation Email: confirm\_email
Order Cancelation Email: cancel\_email
Order Cross Sell Email: cross\_sell\_email
Checkout Abandoned Email‌: abandoned\_email



::File{src="https://api.archbee.com/api/presign/TmutqdeXiIw-V3gBZXVjd/JAl0YWnNwFKytqp9GVun8_ordermail.json" label="order_mail.json" isUploading="false"}



**Cartons (email name: slug)**
Order Shipped Email: shipped\_email



::File{src="https://api.archbee.com/api/presign/TmutqdeXiIw-V3gBZXVjd/I7e5ZGpDJNYL0XQBouuTG_cartonmail-shipped-email.json" label="carton_mail (shipped email).json" isUploading="false"}



**Gift Cards (email name: slug)**
Gift Card Email: gift\_card\_email



::File{src="https://api.archbee.com/api/presign/TmutqdeXiIw-V3gBZXVjd/UZdGvY6xm6FnbB8vUNmb__giftcardemail.json" label="gift_card_email.json" isUploading="false"}







![](https://api.archbee.com/api/optimize/TmutqdeXiIw-V3gBZXVjd/iRMCuVbLY6cHGoPKYMzpl_image-2-22-2023-at-1238-pm.jpg)
:::



::::ExpandableHeading
### Inky

In order to be more flexible in creating emails, we are using [Inky](https://github.com/foundation/inky-rb) as a templating language to essentially convert complex HTML tags into a much simpler approach.‌Inky simplifies the process of creating HTML emails by expanding out simple tags like  and  into full table syntax.



With Inky, we can inject variables into our HTML templates that will be replaced with values from the order when they are compiled into HTML (see \{\{ship\_address.firstname}} in the example below).



![](https://api.archbee.com/api/optimize/TmutqdeXiIw-V3gBZXVjd/jv1PyEkv4JZczVwYo0OxW_untitled.png)



:::hint{type="success"}
**Note**: You can still use HTML‌‌!&#x20;
:::


::::

:::ExpandableHeading
### Variables&#x20;

\{\{ship\_address.firstname}}

\{\{#first\_package\_tracking.url}}

\{\{#line\_items}}

\{\{name}

\{\{[#options\_text](https://paper.dropbox.com/?q=%23options_text)}}

\{\{[#is\_bundle](https://paper.dropbox.com/?q=%23is_bundle)}}

\{\{/parts}}

\{\{quantity}}

\{\{price}}

\{\{[#promo\_total](https://paper.dropbox.com/?q=%23promo_total)}}

\{\{[#p](https://paper.dropbox.com/?q=%23promo_total)ayment\_charge}}

\{\{shipment\_total}}

\{\{[#store\_credit\_applied](https://paper.dropbox.com/?q=%23store_credit_applied)}}

\{\{ship\_address.full\_name}}

\{\{ship\_address.address1}}

\{\{[#ship\_address](https://paper.dropbox.com/?q=%23ship_address).address2}}

\{\{ship\_address.city}},

\{\{ship\_address.state}}

\{\{ship\_address.zipcode}}

\{\{shipping\_method}}

\{\{[#trackings](https://paper.dropbox.com/?q=%23trackings)}}

\{\{[#url](https://paper.dropbox.com/?q=%23url)}}

\{\{order\_total\_after\_store\_credit}}

\{\{purl\_link}

\{\{email}}

\{\{credit}}

\{\{reimbursement\_total}}

\{\{updated\_order\_total}}

\{\{credit\_balance}}

\{\{order.subscription\_order,}}

\{\{order.spree\_channel.name}}

\{\{ order.state}}

\{\{order.display\_item\_total.to\_s}}

\{\{order.display\_tax\_total.to\_s}}

\{\{order.display\_total\_applicable\_store\_credit.to\_s}}

\{\{payment\_information}}

\{\{order.cart\_url.to\_s}}

\{\{order.subscription\_in\_cart?}}

\{\{fully\_cross\_sold\_line\_items}}

\{\{partially\_cross\_sold\_line\_items}}

\{\{non\_cross\_sold\_line\_items}}

\{\{order.metadata}}

\{\{order.shipments.first&.shipping\_method&.code}}

\{\{shipping\_method\_name}}

\{\{order.display\_order\_total\_after\_store\_credit.to\_s}}



Example 1:



![](https://api.archbee.com/api/optimize/TmutqdeXiIw-V3gBZXVjd/-XvzV1b1XbOW62OkJ2axd_untitled.png)





Example 2:&#x20;



![](https://api.archbee.com/api/optimize/TmutqdeXiIw-V3gBZXVjd/ihBTBpz4Bng6Ux7sjTr29_untitled-1.png)
:::



:::ExpandableHeading
### Sections

Sections render blocks of text one or more times, depending on the value of the key in the current context.A section begins with a pound and ends with a slash. That is \{\{[#person](https://paper.dropbox.com/?q=%23person)}}begins a "person" section while \{\{/person}} ends it.
More information [here](https://mustache.github.io/mustache.5.html)
:::



:::ExpandableHeading
### Additional Information

‌The main way to get started is with [Foundation for Emails](http://foundation.zurb.com/emails) and [CSS styled emails without the hassle](https://github.com/fphilipe/premailer-rails)

A tool to help implement and test customizations to Chord email templates.

If you can achieve your needs by overriding a few styles within the Contentful Email's Custom Styles field, this tool isn't necessary. It exists for those looking to completely customize the branding of their email templates.

Chord email templates are powered by [Foundation for Emails](https://get.foundation/emails/docs/) and this repository is based on their [foundation/foundation-emails-](https://github.com/foundation/foundation-emails-template)
:::



:::hint{type="success"}
If you have questions or need more information, please reach out to help\@chord.co&#x20;
:::

##

