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
public class Ecommerce.Cart.Line.IncreasedArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.Line.IncreasedArgs
- Inherited Members
Examples
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 is null || args is not Ecommerce.Notifications.Ecommerce.Cart.Line.IncreasedArgs increasedArgs)
return;
//Add code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.Line.IncreasedArgs
Constructors
IncreasedArgs(OrderLine, Order, double)
Initializes a new instance of the Ecommerce.Cart.Line.IncreasedArgs class.
public IncreasedArgs(OrderLine increasedLine, Order cart, double amountIncreased)
Parameters
increasedLineOrderLineThe increased product.
cartOrderThe cart.
amountIncreaseddoubleThe amount increased.
Properties
AmountIncreased
Gets the amount increased.
public double AmountIncreased { get; }
Property Value
- double
The amount increased.
Cart
Gets the cart.
public Order Cart { get; }
Property Value
- Order
The cart.
IncreasedLine
Gets the increased product.
public OrderLine IncreasedLine { get; }
Property Value
- OrderLine
The increased product.