Class Ecommerce.Cart.AfterShippingMethodIsSetArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order and shipping method just after shipping method is set.
public class Ecommerce.Cart.AfterShippingMethodIsSetArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.AfterShippingMethodIsSetArgs
- Inherited Members
Examples
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.AfterShippingMethodIsSet)]
public class EcomCartAfterShippingMethodIsSetObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
var afterShippingMethodIsSetArgs = args as Ecommerce.Notifications.Ecommerce.Cart.AfterShippingMethodIsSetArgs;
if (afterShippingMethodIsSetArgs is null)
return;
//Add code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.AfterShippingMethodIsSetArgs
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.
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.