Table of Contents

Class Ecommerce.ProductList.BeforeRenderArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about products before their rendering on the front end.

public class Ecommerce.ProductList.BeforeRenderArgs : NotificationArgs
Inheritance
Ecommerce.ProductList.BeforeRenderArgs
Inherited Members

Examples

using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeRender)]
public class EcomProductListBeforeRenderObserver : 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.ProductList.BeforeRenderArgs

Constructors

BeforeRenderArgs(ProductCollection)

Initializes a new instance of the Ecommerce.ProductList.BeforeRenderArgs class.

public BeforeRenderArgs(ProductCollection products)

Parameters

products ProductCollection

The products.

BeforeRenderArgs(ProductCollection, ProductCollection)

Initializes a new instance of the Ecommerce.ProductList.BeforeRenderArgs class.

public BeforeRenderArgs(ProductCollection products, ProductCollection pageProducts)

Parameters

products ProductCollection

The products.

pageProducts ProductCollection

The page products.

Properties

PageProducts

Gets the page products.

public ProductCollection PageProducts { get; }

Property Value

ProductCollection

The page products.

Products

Gets the products.

public ProductCollection Products { get; }

Property Value

ProductCollection

The products.

See Also

To top