Hi,
So, I created a Notification Subscriber class that subscribes to
Dynamicweb.Notifications.eCommerce.Order.State.Changed.
I was expecting that this event is triggered when you change order states in the backend (in Dynamicweb eCom Administration).
But doesn't seem so. Am I missing something here?
Below is the code sample:
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using Dynamicweb;
using Dynamicweb.Frontend;
using Dynamicweb.Extensibility;
namespace MExtensions
{
[Subscribe(Dynamicweb.Notifications.eCommerce.Order.State.Changed)]
public class NotificationOrderStateChanged : NotificationSubscriber
{
public override void OnNotify(string notification, object[] args)
{
System.Diagnostics.Debug.WriteLine(notification);
}
}
}
I want to use this mechanism because, I want to send an e-mail to the customer when his/her order state changes. (eg. when the order is dispatched or canceled)
Regards,
Emil