We use this template for the email comments sent via a completed order's details in your dashboard. You can use the order details COMMENTS section to communicate via email with a customer regarding their completed order. The written message you input in the order details comments will be automatically inserted into this email template.
When you enter the email editor for the first time, you'll have a default template to get started. The actual email related to this template is sent through the dashboard, under a completed order's details. From there, the message you enter will replace the message variable in your template.
The template editor example below includes the message variable you can modify under an order's details.
---
Subject: Information regarding your order {{ order.invoiceNumber }} on {{ settings.businessAddress.company }}.
---
<!DOCTYPE html><html><head></head><bodystyle="font-family: Arial;font-size: 12px;"><p>
{{! You have access to the whole order information using the `order` object. Might be helpful to show some contextual information }}
Hey {{ order.billingAddress.fullName }},
</p><div>
{{ #if order.invoiceNumber }}
A comment has been added to your order
<ahref="{{ settings.orderUrl }}"><strong>{{ order.invoiceNumber }}</strong></a>
on <strong>{{ settings.businessAddress.company }}</strong>
{{ /if }}
</div><blockquotestyle="margin: 1em 0;padding: 1em;border: solid 1px #aaa">
{{! Use thie variable `message` to display the message that you enter in the dashboard when consulting an abandoned cart details screen.}}
{{{ message }}}
</blockquote><div>
If you have any questions regarding this message, reply to this email directly.
</div></body></html>
The template receives:
Variable
Type
Notes
context
string
Email, Pdf or Html.
settings
object
Store settings — see Settings. settings.orderUrl links the customer to the order.
{"context":"Email","message":"Thanks for your order — here is an update.","settings":{"businessAddress":{"company":"snipcart.com"},"orderUrl":"https://snipcart.com#!/orders/..."},"order":{"invoiceNumber":"SNIP-1001","email":"john.doe@example.com","billingAddress":{"fullName":"John Doe"},"items":[{"name":"Geek T-Shirt","quantity":2,"totalPrice":100}]}}
Order comments email template
We use this template for the email comments sent via a completed order's details in your dashboard. You can use the order details COMMENTS section to communicate via email with a customer regarding their completed order. The written message you input in the order details comments will be automatically inserted into this email template.
Customizing the default template
When you enter the email editor for the first time, you'll have a default template to get started. The actual email related to this template is sent through the dashboard, under a completed order's details. From there, the message you enter will replace the
messagevariable in your template.The template editor example below includes the message variable you can modify under an order's details.
The template receives:
contextEmail,PdforHtml.settingssettings.orderUrllinks the customer to the order.ordermessageWhat you can access
orderorder.items[]order.billingAddressorder.shippingAddressorder.summaryorder.summary.taxes[]order.discounts[]order.customFields[]order.refunds[]Minimal example
Was this article helpful?