Click or drag to resize

EcommerceProductListBeforeSortArgs Class

Provides information about the products that will be sorted.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceProductListBeforeSortArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class BeforeSortArgs : NotificationArgs

The EcommerceProductListBeforeSortArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceProductListBeforeSortArgs
Initializes a new instance of the EcommerceProductListBeforeSortArgs class.
Top
Properties
  NameDescription
Public propertyProducts
Gets the products.
Top
Remarks
The passed NotificationArgs is EcommerceProductListBeforeSortArgs
Examples
C#
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
        }
    }
}
See Also