Class Ecommerce.Order.State
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides notification names for order state.
public class Ecommerce.Order.State
- Inheritance
-
Ecommerce.Order.State
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.State.Changed)]
public class EcomOrderStateChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.State.ChangedArgs changedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.State.ChangedArgs;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.Order.State.ChangedArgs
Fields
Changed
Occurs when order status was changed.
public const string Changed = "DWN_ECOM_ORDER_STATE_CHANGED"
Field Value
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.State.Changed)]
public class EcomOrderStateChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.State.ChangedArgs changedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.State.ChangedArgs;
//Add code here
}
}
}