Table of Contents

Class Ecommerce.Cart.DeletedArgs

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

Provides information about the deleted cart.

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

Examples

using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart;
using Dynamicweb.Extensibility.Notifications;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(Deleted)]
public class EcomCartDeletedObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not DeletedArgs deletedArgs)        
            return;        

        // Add code here
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Cart.DeletedArgs

Constructors

DeletedArgs(Order)

Initializes a new instance of the Ecommerce.Cart.DeletedArgs class.

public DeletedArgs(Order cart)

Parameters

cart Order

The cart.

Properties

Cart

Gets the cart.

public Order Cart { get; }

Property Value

Order

The cart.

See Also

To top