Class Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSetArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order just after Newsletter Subscription is set.
public class Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSetArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSetArgs
- Inherited Members
Examples
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)
{
Ecommerce.Notifications.Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSetArgs? afterNewsletterSubscriptionValueIsSetArgs = args as Ecommerce.Notifications.Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSetArgs;
if (afterNewsletterSubscriptionValueIsSetArgs is null)
return;
//Add code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.AfterNewsletterSubscriptionValueIsSetArgs
Properties
NewsletterSubscription
Gets or sets the value of the Newsletter Subscription.
public bool NewsletterSubscription { get; set; }
Property Value
- bool
Boolean. Setting this from a notification subscriber will have no effect.
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.