![]() | EcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs Class |
Namespace: Dynamicweb.Ecommerce.Notifications
The EcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | EcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs | Initializes a new instance of the EcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs 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.AfterNewsletterSubscriptionValueIsChanged)] public class EcomCartAfterNewsletterSubscriptionValueIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber { public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args) { Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterNewsletterSubscriptionValueIsChangedArgs afterNewsletterSubscriptionValueIsChangedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterNewsletterSubscriptionValueIsChangedArgs; //Add code here } } }