Class Ecommerce.VariantList.BeforeRenderArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the product variants just before variant combinations is rendered
public class Ecommerce.VariantList.BeforeRenderArgs : NotificationArgs
- Inheritance
-
Ecommerce.VariantList.BeforeRenderArgs
- 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
Properties
Product
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 Product Product { get; set; }
Property Value
- Product
The product.
VariantCombinationsProducts
The VariantCombinations and its products to be rendered.
public List<KeyValuePair<VariantCombination, Product>> VariantCombinationsProducts { get; set; }
Property Value
- List<KeyValuePair<VariantCombination, Product>>
The variant combinations and products.