Table of Contents

Class Ecommerce.ProductList.BeforeSortArgs

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

Provides information about the products that will be sorted.

public class Ecommerce.ProductList.BeforeSortArgs : NotificationArgs
Inheritance
Ecommerce.ProductList.BeforeSortArgs
Inherited Members

Examples

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

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeSort)]
public class EcomProductListBeforeSortObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeSortArgs item)        
            return;

        // Add code here
    }
}

Remarks

The passed NotificationArgs is Ecommerce.ProductList.BeforeSortArgs

Constructors

BeforeSortArgs(ProductCollection)

Initializes a new instance of the Ecommerce.ProductList.BeforeSortArgs class.

public BeforeSortArgs(ProductCollection products)

Parameters

products ProductCollection

The products.

Properties

Products

Gets the products.

public ProductCollection Products { get; }

Property Value

ProductCollection

The products.

See Also

To top