Click or drag to resize

EcommerceCartBeforeRenderingNewStepArgs Class

Provides information about order before a new step is rendered.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceCartBeforeRenderingNewStepArgs

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

The EcommerceCartBeforeRenderingNewStepArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceCartBeforeRenderingNewStepArgs
Initializes a new instance of the EcommerceCartBeforeRenderingNewStepArgs class
Top
Properties
  NameDescription
Public propertyOrder
Gets or sets the order/cart.
Public propertyRedirectToStepIndex
Gets or sets a flag that indicates whether the Cart should redirect to the value of the StepIndex property. If true the Cart will redirect to the step specified in the StepIndex property; if false the Cart will redirect to the pre-determined step.
Public propertyStepIndex
Gets or sets the index of the new step. The index is 0 (zero) based.
Public propertyValidationErrors
Gets or sets a list of validation errors that happened on this step. Add or remove errors from the collection to modify the result of the validation.
Top
Remarks
The passed NotificationArgs is EcommerceCartBeforeRenderingNewStepArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRenderingNewStep)]
      public class EcomCartBeforeRenderingNewStepObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRenderingNewStepArgs beforeRenderingNewStepArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.BeforeRenderingNewStepArgs;

              //Add code here
          }
      }
  }
See Also