Table of Contents

Class Ecommerce.Cart.BeforeDeliveryCountryIsChangedArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about order and delivery country just before it is changed by user.

public class Ecommerce.Cart.BeforeDeliveryCountryIsChangedArgs : NotificationArgs
Inheritance
Ecommerce.Cart.BeforeDeliveryCountryIsChangedArgs
Inherited Members

Examples

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.BeforeDeliveryCountryIsChanged)]
public class EcomCartBeforeDeliveryCountryIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
    public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
    {
        var beforeDeliveryCountryIsChangedArgs = args as Ecommerce.Notifications.Ecommerce.Cart.BeforeDeliveryCountryIsChangedArgs;
        if (beforeDeliveryCountryIsChangedArgs is null)
            return;

        //Add code here
    }
}

Remarks

Properties

Country

Gets or sets the country.

public Country Country { get; set; }

Property Value

Country

Country. Setting this from a notification subscriber will have no effect.

Order

Gets or sets the order/cart.

public Order Order { get; set; }

Property Value

Order

Order/cart. Setting this from a notification subscriber will have no effect.

See Also

To top