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;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforeSort)]
    public class EcomProductListBeforeSortObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
        {
            if (args == null || !(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforeSortArgs))
                return;

            Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforeSortArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforeSortArgs)args;

            //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