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 static Dynamicweb.Ecommerce.Notifications.Ecommerce.VariantList;
using Dynamicweb.Extensibility.Notifications;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeRender)]
public class EcomVariantListBeforeRenderObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeRenderArgs beforeRenderArgs)        
            return;        

        //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 static Dynamicweb.Ecommerce.Notifications.Ecommerce.VariantList;
using Dynamicweb.Extensibility.Notifications;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeRender)]
public class EcomVariantListBeforeRenderObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeRenderArgs beforeRenderArgs)        
            return;        

        //Add code here
    }
}
To top