Class Ecommerce.Cart.BeforeRenderingEmptyCartArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about cart that is going to be empty.
- Inheritance
-
Ecommerce.
Cart. Before Rendering Empty Cart Args
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRenderingEmptyCart)]
public class EcomCartBeforeRenderingEmptyCartObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRenderingEmptyCartArgs beforeRenderingEmptyCartArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRenderingEmptyCartArgs;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.
Properties
EmptyAction
Gets or sets the CartEmptyAction.
Property Value
- Cart
Empty Action CartEmptyAction. Setting this from a notification subscriber will have no effect.