Click or drag to resize

EcommerceCartBeforeDeliveryCountryIsChangedArgs Class

Provides information about order and delivery country just before it is changed by user.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartBeforeDeliveryCountryIsChangedArgs

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

The EcommerceCartBeforeDeliveryCountryIsChangedArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartBeforeDeliveryCountryIsChangedArgs
Initializes a new instance of the EcommerceCartBeforeDeliveryCountryIsChangedArgs class
Top
Properties
  NameDescription
Public propertyCountry
Gets or sets the country.
Public propertyOrder
Gets or sets the order/cart.
Top
Remarks
The passed NotificationArgs is EcommerceCartBeforeDeliveryCountryIsChangedArgs
Examples
C#
using Dynamicweb;

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

              //Add code here
          }
      }
  }
See Also