Click or drag to resize

EcommerceCartBeforeDefaultPropertiesValueIsSetArgs Class

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

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

The EcommerceCartBeforeDefaultPropertiesValueIsSetArgs type exposes the following members.

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

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsSet)]
      public class EcomCartBeforeDefaultPropertiesValueIsSetObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsSetArgs beforeDefaultPropertiesValueIsSetArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsSetArgs;

              //Add code here
          }
      }
  }
See Also