Table of Contents

Class Ecommerce.ProductList

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

Provides information about the product lists on the frontend.

public sealed class Ecommerce.ProductList
Inheritance
Ecommerce.ProductList
Inherited Members

Examples

using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeShippingFeeCalculation)]
      public class EcomOrderBeforeShippingFeeCalculationObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeShippingFeeCalculationArgs beforeShippingFeeCalculationArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeShippingFeeCalculationArgs;

              //Add code here
          }
      }
  }

Remarks

The passed NotificationArgs is Ecommerce.ProductList.BeforeSortArgs

Fields

AfterCustomOrderChange

Event occurs after sort the products in the Product list in the backend UI.

public const string AfterCustomOrderChange = "DWN_ECOM_PRODUCTLIST_AFTER_CUSTOM_ORDER_CHANGE"

Field Value

string

BeforePaging

Event occurs before product paging change

public const string BeforePaging = "DWN_ECOM_PRODUCTLIST_BEFORE_PAGING"

Field Value

string

Examples

using Dynamicweb;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforePaging)]
    public class EcomProductLisBeforePagingObserver : 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.BeforePagingArgs))
                return;

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

            //Add code here
        }
    }
}

BeforeRender

Event occurs before product list rendering on the front end.

public const string BeforeRender = "DWN_ECOM_PRODUCTLIST_BEFORE_RENDER"

Field Value

string

Examples

using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforeRender)]
      public class EcomProductListBeforeRenderObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforeRenderArgs beforeRenderArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforeRenderArgs;

              //Add code here
          }
      }
  }

BeforeSort

Event occurs before products sorting.

public const string BeforeSort = "DWN_ECOM_PRODUCTLIST_BEFORE_SORT"

Field Value

string

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
        }
    }
}
To top