![]() | EcommerceCartBeforeNewsletterSubscriptionValueIsChangedArgs Class |
Namespace: Dynamicweb.Ecommerce.Notifications
The EcommerceCartBeforeNewsletterSubscriptionValueIsChangedArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | EcommerceCartBeforeNewsletterSubscriptionValueIsChangedArgs | Initializes a new instance of the EcommerceCartBeforeNewsletterSubscriptionValueIsChangedArgs class |
Name | Description | |
---|---|---|
![]() | NewsletterSubscription |
Gets or sets the value of the Newsletter Subscription.
|
![]() | Order |
Gets or sets the order/cart.
|
using Dynamicweb; namespace Dynamicweb.Ecommerce.Examples.Notifications { [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeNewsletterSubscriptionValueIsChanged)] public class EcomCartBeforeNewsletterSubscriptionValueIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber { public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args) { Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeNewsletterSubscriptionValueIsChangedArgs beforeNewsletterSubscriptionValueIsChangedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeNewsletterSubscriptionValueIsChangedArgs; //Add code here } } }