Table of Contents

Class Ecommerce.CustomerCenter

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll
public sealed class Ecommerce.CustomerCenter
Inheritance
Ecommerce.CustomerCenter
Inherited Members

Fields

AfterProductClearCache

Event occurs before product rendering.

public const string AfterProductClearCache = "DWN_ECOM_CUSTOMERCENTER_AFTER_PRODUCTCLEARCACHE"

Field Value

string

Examples

using Dynamicweb;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeRender)]
    public class EcomProductBeforeRenderObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
        {
            if (args == null || !(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeRenderArgs))
                return;

            Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeRenderArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeRenderArgs)args;

            //Add code here
        }
    }
}
To top