Class Ecommerce.Cart.BeforeCustomFieldValueIsChangedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order and it's custom field just before it is changed.
public class Ecommerce.Cart.BeforeCustomFieldValueIsChangedArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.BeforeCustomFieldValueIsChangedArgs
- Inherited Members
Examples
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.BeforeCustomFieldValueIsChanged)]
public class EcomCartBeforeCustomFieldValueIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
var beforeCustomFieldValueIsChangedArgs = args as Ecommerce.Notifications.Ecommerce.Cart.BeforeCustomFieldValueIsChangedArgs;
if (beforeCustomFieldValueIsChangedArgs is null)
return;
//Add code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.BeforeCustomFieldValueIsChangedArgs
Properties
CustomFieldName
Gets or sets the Custom Field name.
public string CustomFieldName { get; set; }
Property Value
- string
String. Setting this from a notification subscriber will have no effect.
Order
Gets or sets the order/cart.
public Order Order { get; set; }
Property Value
- Order
Order/cart. Setting this from a notification subscriber will have no effect.
Value
Gets or sets the value of the Custom Field.
public object Value { get; set; }
Property Value
- object
Object. Setting this from a notification subscriber will have no effect.