Click or drag to resize

EcommerceCartBeforeShippingMethodIsSetArgs Class

Provides information about order and shipping method just before shipping method is set.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartBeforeShippingMethodIsSetArgs

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

The EcommerceCartBeforeShippingMethodIsSetArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartBeforeShippingMethodIsSetArgs
Initializes a new instance of the EcommerceCartBeforeShippingMethodIsSetArgs class
Top
Properties
  NameDescription
Public propertyOrder
Gets or sets the order/cart.
Public propertyShipping
Gets or sets the shipping.
Top
Remarks
The passed NotificationArgs is EcommerceCartBeforeShippingMethodIsSetArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeShippingMethodIsSet)]
      public class EcomCartBeforeShippingMethodIsSetObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeShippingMethodIsSetArgs beforeShippingMethodIsSetArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeShippingMethodIsSetArgs;

              //Add code here
          }
      }
  }
See Also