Order notification email per order status

merav Uli asked on March 16, 2016 11:45


I see there is an option to send email notification once the order status has changed.

and i am getting the emails, BUT i want to set a custom email of my system not the one Kentico sends. I want to send one template for order status new and a different template for all the other statuses.

I have created the templates I just do know how do I define them to be sent per order status.

thank you

Ecommerce module:

Store Configuration > Store settings > Emails > check : Send order notification Also check the general site settings:

Settings > E-commerce > Emails If you go into the Email templates module and search for "E-commerce" you'll see multiple templates used by the E-commerce module. For example:

'E-commerce - Order notification to customer'

Recent Answers

Dawid Jachnik answered on March 16, 2016 12:16 (last edited on March 16, 2016 12:16)

Hello, There two ways how to achive that.

  1. Use macro condition in the email template based on the order status.
  2. Disable default Kentico notifications and create your own. Create handler on Order or Order status, then check if the status was changed and send dedicated template.
3 votesVote for this answer Mark as a Correct answer

merav Uli answered on March 16, 2016 12:28

Is there a step by step manual on how to one or the other?

0 votesVote for this answer Mark as a Correct answer

Dawid Jachnik answered on March 16, 2016 12:56

Not detailed, but I will give you few tips.

How to create custo handler. You need to create handler for CMS.Ecommerce.OrderStatusInfo for the event Insert.After. In the function you need get previous Order status and compare it. Then you need to send email using template (Some old example, but it could work)

Some API Examples regarding Orders

5 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.