Table of Contents

Class Ecommerce.VariantList

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll
Provides information about the product variants on the frontend.
public sealed class Ecommerce.VariantList
Inheritance
Ecommerce.VariantList
Inherited Members

Examples

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

Remarks

The passed NotificationArgs is Ecommerce.VariantList.BeforeRenderArgs

Fields

BeforeRender

Notification fired before variant combinations is rendered
public const string BeforeRender = "Dynamicweb.Ecommerce.Notification.VariantList.BeforeRender"

Field Value

string

Examples

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