Class Ecommerce.Cart.Line.IncreasedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the product the amount of which was increased in the cart
- Inheritance
-
Ecommerce.
Cart. Line. Increased Args
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.Increased)]
public class EcomCartLineIncreasedObserver : 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.IncreasedArgs))
return;
Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.IncreasedArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.IncreasedArgs)args;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.
Constructors
IncreasedArgs(OrderLine, Order, double)
Initializes a new instance of the Ecommerce.
Parameters
increasedLine
OrderLine The increased product.
cart
OrderThe cart.
amountIncreased
doubleThe amount increased.
Properties
AmountIncreased
Gets the amount increased.
Property Value
- double
The amount increased.
Cart
Gets the cart.
Property Value
- Order
The cart.
IncreasedLine
Gets the increased product.
Property Value
- Order
Line The increased product.