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
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.BeforeRemovingNonExistingProducts)]
public class EcomCartBeforeRemovingNonExistingProductsObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
var beforeRemovingNonExistingProductsArgs = args as Ecommerce.Notifications.Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs;
if (beforeRemovingNonExistingProductsArgs is null)
return;
//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; }