Class Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order and order lines just before Non-existing products are removed.
public class Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRemovingNonExistingProducts)]
public class EcomCartBeforeRemovingNonExistingProductsObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs beforeRemovingNonExistingProductsArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs
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.
OrderLinesToRemove
Gets or sets a list of OrderLines that will be removed from the order.
public List<OrderLine> OrderLinesToRemove { get; set; }