Click or drag to resize

EcommerceVariantListBeforeRenderArgs Class

Provides information about the product variants just before variant combinations is rendered
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceVariantListBeforeRenderArgs

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

The EcommerceVariantListBeforeRenderArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceVariantListBeforeRenderArgs
Initializes a new instance of the EcommerceVariantListBeforeRenderArgs class
Top
Properties
  NameDescription
Public propertyProduct
The product to which the VariantCombinations belong. This is merely for information purposes. Overriding this property will have no effect on the actual rendering.
Public propertyVariantCombinations
The VariantCombinations about to be rendered.
Top
Remarks
The passed NotificationArgs is EcommerceVariantListBeforeRenderArgs
Examples
C#
using Dynamicweb;

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

              //Add code here
          }
      }
  }
See Also