Class Ecommerce.Cart.OnNewsletterSubscribeArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order if user checks the signup for newsletter checkbox.
public class Ecommerce.Cart.OnNewsletterSubscribeArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.OnNewsletterSubscribeArgs
- Inherited Members
Examples
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
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.OnNewsletterSubscribeArgs
Properties
CartModuleSettings
Gets or sets the Dynamicweb.Ecommerce.Cart.ModuleSettings for the current cart.
public ModuleSettings CartModuleSettings { get; set; }
Property Value
- ModuleSettings
- ModuleSettings. Setting this from a notification subscriber will have no effect.
- See Also
Order
Gets or sets the order/cart.
public Order Order { get; set; }
Property Value
- Order
- Order/cart. Setting this from a notification subscriber will have no effect.
- See Also