Table of Contents

Class Ecommerce.Cart.BeforeShippingMethodIsSetArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll
Provides information about order and shipping method just before shipping method is set.
public class Ecommerce.Cart.BeforeShippingMethodIsSetArgs : NotificationArgs
Inheritance
Ecommerce.Cart.BeforeShippingMethodIsSetArgs
Inherited Members

Examples

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
          }
      }
  }

Remarks

The passed NotificationArgs is Ecommerce.Cart.BeforeShippingMethodIsSetArgs

Properties

Order

Gets or sets the order/cart.
public Order Order { get; set; }

Property Value

Order
Order/cart. Setting this from a notification subscriber will have no effect.
See Also

Shipping

Gets or sets the shipping.
public Shipping Shipping { get; set; }

Property Value

Shipping
Shipping. Setting this from a notification subscriber will have no effect.
See Also

See Also

To top