Class Ecommerce.ProductList
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the product lists on the frontend.
- Inheritance
-
Ecommerce.
Product List
- 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.
Fields
AfterCustomOrderChange
Event occurs after sort the products in the Product list in the backend UI.
Field Value
BeforePaging
Event occurs before product paging change
Field Value
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.
Field Value
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.
Field Value
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
}
}
}