Click or drag to resize

EcommerceCartBeforeDefaultPropertiesValueIsChangedArgs Class

Provides information about order and it's default properties just before it is changed.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartBeforeDefaultPropertiesValueIsChangedArgs

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

The EcommerceCartBeforeDefaultPropertiesValueIsChangedArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartBeforeDefaultPropertiesValueIsChangedArgs
Initializes a new instance of the EcommerceCartBeforeDefaultPropertiesValueIsChangedArgs class
Top
Properties
  NameDescription
Public propertyOrder
Gets or sets the order/cart.
Public propertyPropertyName
Gets or sets the property name.
Public propertyValue
Gets or sets the value of the Default Property.
Top
Remarks
The passed NotificationArgs is EcommerceCartBeforeDefaultPropertiesValueIsChangedArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsChanged)]
      public class EcomCartBeforeDefaultPropertiesValueIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsChangedArgs beforeDefaultPropertiesValueIsChangedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsChangedArgs;

              //Add code here
          }
      }
  }
See Also