Click or drag to resize

EcommerceOrderBeforeSaveArgs Class

Provides information about the order which is going to be saved.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceOrderBeforeSaveArgs

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

The EcommerceOrderBeforeSaveArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceOrderBeforeSaveArgs
Initializes a new instance of the EcommerceOrderBeforeSaveArgs class.
Top
Properties
  NameDescription
Public propertyOrder
Gets the order.
Public propertyStopExecution
Gets or sets a value indicating whether [stop execution].
Top
Remarks
The passed NotificationArgs is EcommerceOrderBeforeSaveArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSave)]
      public class EcomOrderBeforeSaveObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSaveArgs beforeSaveArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSaveArgs;

              //Add code here
          }
      }
  }
See Also