Table of Contents

Class Ecommerce.Cart.BeforeNewsletterSubscriptionValueIsChangedArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about order just before Newsletter Subscription is changed by user.

public class Ecommerce.Cart.BeforeNewsletterSubscriptionValueIsChangedArgs : NotificationArgs
Inheritance
Ecommerce.Cart.BeforeNewsletterSubscriptionValueIsChangedArgs
Inherited Members

Examples

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.BeforeNewsletterSubscriptionValueIsChanged)]
public class EcomCartBeforeNewsletterSubscriptionValueIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
    public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
    {
        var beforeNewsletterSubscriptionValueIsChangedArgs = args as Ecommerce.Notifications.Ecommerce.Cart.BeforeNewsletterSubscriptionValueIsChangedArgs;
        if (beforeNewsletterSubscriptionValueIsChangedArgs is null)
            return;

        //Add code here
    }
}

Remarks

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.

See Also

To top