Click or drag to resize

EcommerceCartAfterNewsletterSubscriptionValueIsSetArgs Class

Provides information about order just after Newsletter Subscription is set.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartAfterNewsletterSubscriptionValueIsSetArgs

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

The EcommerceCartAfterNewsletterSubscriptionValueIsSetArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartAfterNewsletterSubscriptionValueIsSetArgs
Initializes a new instance of the EcommerceCartAfterNewsletterSubscriptionValueIsSetArgs 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 EcommerceCartAfterNewsletterSubscriptionValueIsSetArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSet)]
      public class EcomCartAfterNewsletterSubscriptionValueIsSetObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSetArgs afterNewsletterSubscriptionValueIsSetArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSetArgs;

              //Add code here
          }
      }
  }
See Also