Click or drag to resize

EcommerceCartBeforeRemovingNonExistingProductsArgs Class

Provides information about order and order lines just before Non-existing products are removed.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartBeforeRemovingNonExistingProductsArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class BeforeRemovingNonExistingProductsArgs : NotificationArgs

The EcommerceCartBeforeRemovingNonExistingProductsArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartBeforeRemovingNonExistingProductsArgs
Initializes a new instance of the EcommerceCartBeforeRemovingNonExistingProductsArgs class
Top
Properties
  NameDescription
Public propertyOrder
Gets or sets the order/cart.
Public propertyOrderLinesToRemove
Gets or sets a list of OrderLines that will be removed from the order.
Top
Remarks
The passed NotificationArgs is EcommerceCartBeforeRemovingNonExistingProductsArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRemovingNonExistingProducts)]
      public class EcomCartBeforeRemovingNonExistingProductsObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs beforeRemovingNonExistingProductsArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRemovingNonExistingProductsArgs;

              //Add code here
          }
      }
  }
See Also