Click or drag to resize

EcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs Class

Provides information about order just after Newsletter Subscription is changed by user.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class AfterNewsletterSubscriptionValueIsChangedArgs : NotificationArgs

The EcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs
Initializes a new instance of the EcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs class
Top
Properties
  NameDescription
Public propertyNewsletterSubscription
Gets or sets the value of the Newsletter Subscription.
Public propertyOrder
Gets or sets the order/cart.
Top
Remarks
The passed NotificationArgs is EcommerceCartAfterNewsletterSubscriptionValueIsChangedArgs
Examples
C#
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
          }
      }
  }
See Also