Click or drag to resize

EcommerceOrderStateChangedArgs Class

Provides information about order when it's status was changed.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceOrderStateChangedArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class ChangedArgs : NotificationArgs

The EcommerceOrderStateChangedArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceOrderStateChangedArgs
Initializes a new instance of the EcommerceOrderStateChangedArgs class.
Top
Properties
  NameDescription
Public propertyOrder
Gets the order.
Top
Remarks
The passed NotificationArgs is EcommerceOrderStateChangedArgs
Examples
C#
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
        }
    }
}
See Also