Class Ecommerce.Cart.Line.NotAddedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the added product.
- Inheritance
-
Ecommerce.
Cart. Line. Not Added Args
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.Added)]
public class EcomCartLineAddedObserver : 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.AddedArgs))
return;
Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.AddedArgs added = (Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.AddedArgs)args;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.
Constructors
NotAddedArgs(Product, Order, NotAddedReason)
Initializes a new instance of the Ecommerce.
public NotAddedArgs(Product product, Order cart, Ecommerce.Cart.Line.NotAddedArgs.NotAddedReason reason)
Parameters
product
ProductThe not added product.
cart
OrderThe cart.
reason
Ecommerce.Cart.Line.NotAdded .NotArgs Added Reason
Properties
Cart
Gets the cart.
Property Value
- Order
The cart.
Product
Gets the added product.
Property Value
- Product
The added product.
Reason
Reason why the product was not added to the cart