Table of Contents

Class Ecommerce.Cart.Line.DecreasedArgs

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

Provides information about the product the amount of which was decreased in the cart.

public class Ecommerce.Cart.Line.DecreasedArgs : NotificationArgs
Inheritance
Ecommerce.Cart.Line.DecreasedArgs
Inherited Members

Examples

using Dynamicweb;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.Decreased)]
    public class EcomCartLineDecreasedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
        {
            if (args == null || !(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.DecreasedArgs))
                return;

            Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.DecreasedArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.Line.DecreasedArgs)args;

            //Add code here
        }
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Cart.Line.DecreasedArgs

Constructors

DecreasedArgs(OrderLine, Order, double)

Initializes a new instance of the Ecommerce.Cart.Line.DecreasedArgs class.

public DecreasedArgs(OrderLine decreasedLine, Order cart, double amountDecreased)

Parameters

decreasedLine OrderLine

The decreased product.

cart Order

The cart.

amountDecreased double

The amount decreased.

Properties

AmountDecreased

Gets or sets the amount decreased.

public double AmountDecreased { get; set; }

Property Value

double

The amount decreased.

Cart

Gets or sets the cart.

public Order Cart { get; set; }

Property Value

Order

The cart.

DecreasedLine

Gets or sets the decreased product.

public OrderLine DecreasedLine { get; set; }

Property Value

OrderLine

The decreased product.

See Also

To top