Click or drag to resize

EcommerceCartBeforeCustomerCountryIsChangedArgs Class

Provides information about order and country just before customer country is changed by the user.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartBeforeCustomerCountryIsChangedArgs

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

The EcommerceCartBeforeCustomerCountryIsChangedArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartBeforeCustomerCountryIsChangedArgs
Initializes a new instance of the EcommerceCartBeforeCustomerCountryIsChangedArgs 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 EcommerceCartBeforeCustomerCountryIsChangedArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeCustomerCountryIsChanged)]
      public class EcomCartBeforeCustomerCountryIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeCustomerCountryIsChangedArgs beforeCustomerCountryIsChangedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeCustomerCountryIsChangedArgs;

              //Add code here
          }
      }
  }
See Also