Click or drag to resize

EcommerceCartAfterCustomFieldValueIsChangedArgs Class

Provides information about order and it's custom field just after it is changed.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartAfterCustomFieldValueIsChangedArgs

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

The EcommerceCartAfterCustomFieldValueIsChangedArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartAfterCustomFieldValueIsChangedArgs
Initializes a new instance of the EcommerceCartAfterCustomFieldValueIsChangedArgs class
Top
Properties
  NameDescription
Public propertyCustomFieldName
Gets or sets the Custom Field name.
Public propertyOrder
Gets or sets the order/cart.
Public propertyValue
Gets or sets the value of the Custom Field.
Top
Remarks
The passed NotificationArgs is EcommerceCartAfterCustomFieldValueIsChangedArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterCustomFieldValueIsChanged)]
      public class EcomCartAfterCustomFieldValueIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterCustomFieldValueIsChangedArgs afterCustomFieldValueIsChangedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterCustomFieldValueIsChangedArgs;

              //Add code here
          }
      }
  }
See Also