Email đơn hàng
Order Email
Order Email manages the templates used for automated notifications in the order lifecycle.
What the source handles
- load templates for the
ordergroup - match templates against enabled order email settings
- create and edit templates in a modal
- manage
variables - manage
sample_data - render preview content with placeholder replacement
Known notification keys in source
order.order.admin_on_new_orderorder.order.user_on_status_changeorder.order.user_on_new_orderorder.order.admin_on_status_changeorder.order.admin_on_new_refund_request
Important form fields
nameblade_layoutgroupkey_namecontentlanguage_idvariablessample_datadescription
Safe editing flow
- Open the template tied to the correct business event.
- Review variables before changing content.
- Update sample data so preview remains meaningful.
- Save only after verifying placeholders and expected output.
Common risk
Renaming or removing variables without updating the template content and sample data can create drift between preview behavior and runtime output.

