Click or drag to resize

EcommerceProductListBeforeRenderArgs Class

Provides information about products before their rendering on the front end.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceProductListBeforeRenderArgs

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

The EcommerceProductListBeforeRenderArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceProductListBeforeRenderArgs(ProductCollection)
Initializes a new instance of the EcommerceProductListBeforeRenderArgs class.
Public methodEcommerceProductListBeforeRenderArgs(ProductCollection, ProductCollection)
Initializes a new instance of the EcommerceProductListBeforeRenderArgs class.
Top
Properties
  NameDescription
Public propertyPageProducts
Gets the page products.
Public propertyProducts
Gets the products.
Top
Remarks
The passed NotificationArgs is EcommerceProductListBeforeRenderArgs
Examples
C#
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
          }
      }
  }
See Also