Click or drag to resize

EcommerceCartOnNewsletterSubscribeArgs Class

Provides information about order if user checks the signup for newsletter checkbox.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartOnNewsletterSubscribeArgs

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

The EcommerceCartOnNewsletterSubscribeArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartOnNewsletterSubscribeArgs
Initializes a new instance of the EcommerceCartOnNewsletterSubscribeArgs class
Top
Properties
  NameDescription
Public propertyCartModuleSettings
Gets or sets the Dynamicweb.Ecommerce.Cart.ModuleSettings for the current cart.
Public propertyOrder
Gets or sets the order/cart.
Top
Remarks
The passed NotificationArgs is EcommerceCartOnNewsletterSubscribeArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.OnNewsletterSubscribe)]
      public class EcomCartOnNewsletterSubscribeObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.OnNewsletterSubscribeArgs onNewsletterSubscribeArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.OnNewsletterSubscribeArgs;

              //Add code here
          }
      }
  }
See Also