![]() | EcommerceProductBeforeSaveArgs Class |
Namespace: Dynamicweb.Ecommerce.Notifications
The EcommerceProductBeforeSaveArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | EcommerceProductBeforeSaveArgs |
Initializes a new instance of the EcommerceProductBeforeSaveArgs class.
|
Name | Description | |
---|---|---|
![]() | Product |
Gets the product.
|
![]() | StopExecution |
Gets or sets a value indicating whether to stop the save process. If true then the save process is interrupted.
|
using Dynamicweb; namespace Dynamicweb.Ecommerce.Examples.Notifications { [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeSave)] public class EcomProductBeforeSaveObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber { public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args) { Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeSaveArgs beforeSaveArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeSaveArgs; //Add code here } } }