Class Ecommerce.Cart.BeforeDefaultPropertiesValueIsChangedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order and it's default properties just before it is changed.
- Inheritance
-
Ecommerce.
Cart. Before Default Properties Value IsChanged Args
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsChanged)]
public class EcomCartBeforeDefaultPropertiesValueIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsChangedArgs beforeDefaultPropertiesValueIsChangedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeDefaultPropertiesValueIsChangedArgs;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.
Properties
Order
Gets or sets the order/cart.
Property Value
- Order
Order/cart. Setting this from a notification subscriber will have no effect.
PropertyName
Gets or sets the property name.
Property Value
- string
String. Setting this from a notification subscriber will have no effect.
Value
Gets or sets the value of the Default Property.
Property Value
- object
Object. Setting this from a notification subscriber will have no effect.