Order Email Notifications (for customers)
On an order creation or status change an email notification might be sent. By default, there is a notification for the new order, which sends out to a customer if emails is specified:
How to customise Email notifications?
When a template is rendered there are available variables:
{
"ORDER_URL": "http://localhost:3000/thank-you/46ce25ce-37e1-4081-a737-420cb7dfe61b",
"ORDER_ID": 29,
"ORDER_PUBLIC_ID": "46ce25ce-37e1-4081-a737-420cb7dfe61b",
"ORDER_SUM": "45.00 $",
"TRACK_NUM": "",
"CUSTOMER_FULLNAME": "John Snow",
"CUSTOMER_FIRSTNAME": "John",
"CUSTOMER_COMMENT": "Some comment from John",
"ITEMS_LIST": "
",
"ITEMS": [
{
"reserve_item_id": 553,
"reserve_id": 122,
"stock_id": null,
"qty": 1,
"created_at": "2023-11-05T11:09:35.587Z",
"completed_at": null,
"item_price_id": 597,
"price_id": 7,
"basic_price": "45.00",
"final_price": "45.00",
"discount_amount": null,
"discount_percent": null,
"item_id": 3650,
"type": "product",
"track_inventory": true,
"available_qty": 20,
"reserved_qty": 0,
"product_id": 180,
"variant_id": null,
"custom_item_id": null,
"status": "published",
"deleted_at": null,
"lang_id": 1,
"product": {
"product_id": 180,
"sku": "2667209",
"has_variants": false,
"title": "Battery Case Odoyo Power+Shell for iPhone 6/6S ",
"url_key": "chekhol-akkumulyator-odoyo-power-shell-dlya-iphone-6-6s",
"default_category_id": 105,
"manufacturer_id": 33,
"tax_status": "taxable",
"tax_class_id": null,
"url": "http://localhost:3000/product/chekhol-akkumulyator-odoyo-power-shell-dlya-iphone-6-6s"
},
"variant": {
"variant_id": null,
"sku": null,
"title": null,
"cases": null,
"size": null
},
"custom_item": {
"custom_item_id": null,
"title": null,
"price": null
},
"commodity_group": {
"group_id": 61,
"type": "material",
"not_track_inventory": false,
"vat": "noVat",
"physical_products": true,
"title": "Default Product type"
},
"image": {
"path": "images/a1/ae/ace20b14fe947ff13822f97a82ac.jpeg",
"width": 725,
"height": 725,
"src": "https://dev-media.boundless-commerce.com/thumb/kirill-office-mac/i1/images/a1/ae/ace20b14fe947ff13822f97a82ac.jpeg?mode=scale&max-size=100"
},
"prices": [
{
"point_id": 1,
"price_id": 7,
"alias": "selling_price",
"currency_id": 4,
"currency_alias": "usd",
"value": 45,
"min": null,
"max": null,
"is_auto_generated": true,
"old": null,
"old_min": null,
"old_max": null
},
{
"point_id": 1,
"price_id": 8,
"alias": "purchase_price",
"currency_id": 4,
"currency_alias": "usd",
"value": 20,
"min": null,
"max": null,
"is_auto_generated": true,
"old": null,
"old_min": null,
"old_max": null
}
],
"labels": [],
"total_price": "45.00",
"total_price_formatted": "45.00 $",
"final_price_formatted": "45.00 $"
}
],
"SITE_URL": "http://localhost:3000"
}
Templates are using Mustache syntax.
There is an example for custom Email notification:
Dear {{CUSTOMER_FULLNAME}},
Thank you so much for your order!
You have selected the following items:
{{#ITEMS}}
-
{{product.sku}} - {{product.title}}
{{qty}} qty
Price: {{final_price_formatted}}
Total: {{total_price_formatted}}
{{/ITEMS}}
Thank you,
Your Support Team