Table of Contents

Class Ecommerce.Product

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

Provides notification names for product.

public sealed class Ecommerce.Product
Inheritance
Ecommerce.Product
Inherited Members

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
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Product.BeforeRenderArgs

Fields

AfterCreate

Event occurs after product creating.

public const string AfterCreate = "DWN_ECOM_PRODUCT_AFTER_CREATE"

Field Value

string

AfterDelete

Event occurs after deleting the product.

public const string AfterDelete = "DWN_ECOM_PRODUCT_AFTER_DELETE"

Field Value

string

Examples

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

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(AfterDelete)]
public class EcomProductAfterDeleteObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not AfterDeleteArgs afterDeleteArgs)        
            return;        

        // Add code here
    }
}

AfterSave

Event occurs after product saving.

public const string AfterSave = "DWN_ECOM_PRODUCT_AFTER_SAVE"

Field Value

string

Examples

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

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(AfterSave)]
public class EcomProductAfterSaveObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not AfterSaveArgs afterSaveArgs)        
            return;

        // Add code here
    }
}

BeforeDelete

Event occurs before deleting the product.

public const string BeforeDelete = "DWN_ECOM_PRODUCT_BEFORE_DELETE"

Field Value

string

Examples

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

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeDelete)]
public class EcomProductBeforeDeleteObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeDeleteArgs beforeDeleteArgs)        
            return;        

        // Add code here
    }
}

BeforeRender

Event occurs before product rendering.

public const string BeforeRender = "DWN_ECOM_PRODUCT_BEFORE_RENDER"

Field Value

string

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
    }
}

BeforeSave

Event occurs before product rendering.

public const string BeforeSave = "DWN_ECOM_PRODUCT_BEFORE_SAVE"

Field Value

string

Examples

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

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeSave)]
public class EcomProductBeforeSaveObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeSaveArgs beforeSaveArgs)
            return;

        // Add code here
    }
}

ProductGroupRelationAfterSave

Event occurs after product group relations saved.

public const string ProductGroupRelationAfterSave = "DWN_ECOM_PRODUCT_GROUP_RELATION_AFTER_SAVE"

Field Value

string

ProductGroupRelationBeforeSave

Event occurs before product group relations saving.

public const string ProductGroupRelationBeforeSave = "DWN_ECOM_PRODUCT_GROUP_RELATION_BEFORE_SAVE"

Field Value

string

ProductGroupRelationDeleted

Event occurs after product group relations deleted.

public const string ProductGroupRelationDeleted = "DWN_ECOM_PRODUCT_RELATION_DELETED"

Field Value

string

ProductWorkflowStateChanged

Event occurs after product workflow state changed.

public const string ProductWorkflowStateChanged = "DWN_ECOM_PRODUCT_WORKFLOW_STATE_CHANGED"

Field Value

string

PropertyFieldsChanged

Event occurs when product properties list changed.

public const string PropertyFieldsChanged = "DWN_ECOM_PRODUCT_PROPERTY_FIELDS_CHANGED"

Field Value

string
To top