Chord OMS
Content Management (CMS)
Transactional Emails Templates/Variables
4min
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 default email templates subscriptions (email name slug) subscription reminder email subscription default reminder subscription last chance reminder email subscription last chance reminder https //archbee doc uploads s3 amazonaws com/tmutqdexiiw v3gbzxvjd/o6f7pje8bj9 hclw mxfd subscriptionemail json stock requests (email name slug) item back in stock email back in stock https //archbee doc uploads s3 amazonaws com/tmutqdexiiw v3gbzxvjd/3kj3ckok66bmie swq7 e stockrequstemail json reimbursements (email name slug) order reimbursement email reimbursement email https //archbee doc uploads s3 amazonaws com/tmutqdexiiw v3gbzxvjd/fwz uwjlivq8iydbbr1l9 reimbursementemail json 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 https //archbee doc uploads s3 amazonaws com/tmutqdexiiw v3gbzxvjd/0ilimty2whykw5 geijoy refundemail json referrals (email name slug) reward confirmation email reward confirmation referral prompt email referral prompt https //archbee doc uploads s3 amazonaws com/tmutqdexiiw v3gbzxvjd/jwpaagm87vppoqlrqxl7x referralemail json 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 https //archbee doc uploads s3 amazonaws com/tmutqdexiiw v3gbzxvjd/jal0ywnnwfkytqp9gvun8 ordermail json cartons (email name slug) order shipped email shipped email https //archbee doc uploads s3 amazonaws com/tmutqdexiiw v3gbzxvjd/i7e5zgpdjnyl0xqbouutg cartonmail shipped email json gift cards (email name slug) gift card email gift card email https //archbee doc uploads s3 amazonaws com/tmutqdexiiw v3gbzxvjd/uzdgvy6xm6fnbb8vunmb giftcardemail json 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) note you can still use html! variables {{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 example 2 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 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 if you have questions or need more information, please reach out to help\@chord co