Table of Contents

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.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.State;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(Changed)]
public class EcomOrderStateChangedObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not ChangedArgs changedArgs)        
            return;

        //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

string

Examples

using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.State;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(Changed)]
public class EcomOrderStateChangedObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not ChangedArgs changedArgs)        
            return;

        //Add code here
    }
}
To top