Class Ecommerce.Cart.Line.RemovedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the removed product.
public class Ecommerce.Cart.Line.RemovedArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.Line.RemovedArgs
- Inherited Members
Examples
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.Line.Removed)]
public class EcomCartLineRemovedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
if (args is null || args is not Ecommerce.Notifications.Ecommerce.Cart.Line.RemovedArgs removedArgs)
return;
//Add code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.Line.RemovedArgs
Constructors
RemovedArgs(OrderLine, Order)
Initializes a new instance of the Ecommerce.Cart.Line.RemovedArgs class.
public RemovedArgs(OrderLine removedLine, Order cart)
Parameters
RemovedArgs(OrderLine, Order, bool)
Initializes a new instance of the Ecommerce.Cart.Line.RemovedArgs class.
public RemovedArgs(OrderLine removedLine, Order cart, bool removedAsInactiveProduct)
Parameters
removedLineOrderLineThe removed product.
cartOrderThe cart.
removedAsInactiveProductboolWas the line removed during "Remove non active products" procedure or not.
Properties
Cart
Gets or sets the cart.
public Order Cart { get; set; }
Property Value
- Order
The cart.
IsRemovedAsInactiveProduct
Gets or sets the value indicating whether the order line was removed during "Remove inactive products" procedure or not.
public bool IsRemovedAsInactiveProduct { get; set; }
Property Value
RemovedLine
Gets the removed product.
public OrderLine RemovedLine { get; }
Property Value
- OrderLine
The removed product.