Class Ecommerce.ProductList.BeforeRenderArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about products before their rendering on the front end.
public class Ecommerce.ProductList.BeforeRenderArgs : NotificationArgs
- Inheritance
-
Ecommerce.ProductList.BeforeRenderArgs
- Inherited Members
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
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.ProductList.BeforeRenderArgs
Constructors
BeforeRenderArgs(ProductCollection)
Initializes a new instance of the Ecommerce.ProductList.BeforeRenderArgs class.
public BeforeRenderArgs(ProductCollection products)
Parameters
products
ProductCollection- The products.
- See Also
BeforeRenderArgs(ProductCollection, ProductCollection)
Initializes a new instance of the Ecommerce.ProductList.BeforeRenderArgs class.
public BeforeRenderArgs(ProductCollection products, ProductCollection pageProducts)
Parameters
products
ProductCollection- The products.
pageProducts
ProductCollection- The page products.
- See Also
Properties
PageProducts
Gets the page products.
public ProductCollection PageProducts { get; }
Property Value
- ProductCollection
- The page products.
- See Also
Products
Gets the products.
public ProductCollection Products { get; }
Property Value
- ProductCollection
- The products.
- See Also