Class Ecommerce.Cart.Line.DecreasedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the product the amount of which was decreased in the cart.
- Inheritance
-
Ecommerce.
Cart. Line. Decreased Args
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.Decreased)]
public class EcomCartLineDecreasedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
if (args == null || !(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.DecreasedArgs))
return;
Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.DecreasedArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.DecreasedArgs)args;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.
Constructors
DecreasedArgs(OrderLine, Order, double)
Initializes a new instance of the Ecommerce.
Parameters
decreasedLine
OrderLine The decreased product.
cart
OrderThe cart.
amountDecreased
doubleThe amount decreased.
Properties
AmountDecreased
Gets or sets the amount decreased.
Property Value
- double
The amount decreased.
Cart
Gets or sets the cart.
Property Value
- Order
The cart.
DecreasedLine
Gets or sets the decreased product.
Property Value
- Order
Line The decreased product.