Class Ecommerce.CustomerCenter
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
public sealed class Ecommerce.CustomerCenter
- Inheritance
-
Ecommerce.CustomerCenter
- Inherited Members
Fields
AfterFavoriteListDelete
Occurs after a favorite list has been deleted, before its own cache entry is cleared.
public const string AfterFavoriteListDelete = "DWN_ECOM_CUSTOMERCENTER_AFTER_FAVORITELISTDELETE"
Field Value
Remarks
The products saved in the deleted list are dropped from the favorite product cache by a subscriber to this notification, so subscribe here to react to a list going away.
AfterProductClearCache
Event occurs before product rendering.
public const string AfterProductClearCache = "DWN_ECOM_CUSTOMERCENTER_AFTER_PRODUCTCLEARCACHE"
Field Value
Examples
using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Product;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(BeforeRender)]
public class EcomProductBeforeRenderObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not BeforeRenderArgs item)
return;
// Add code here
}
}