Table of Contents

Class Ecommerce.Cart.BeforeRenderingNewStepArgs

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

Provides information about order before a new step is rendered.

public class Ecommerce.Cart.BeforeRenderingNewStepArgs : NotificationArgs
Inheritance
Ecommerce.Cart.BeforeRenderingNewStepArgs
Inherited Members

Examples

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

Remarks

The passed NotificationArgs is Ecommerce.Cart.BeforeRenderingNewStepArgs

Properties

Order

Gets or sets the order/cart.

public Order Order { get; set; }

Property Value

Order

Order/cart. Setting this from a notification subscriber will have no effect.

RedirectToStepIndex

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 bool RedirectToStepIndex { get; set; }

Property Value

bool

Boolean indicating whether to redirect.

StepIndex

Gets or sets the index of the new step. The index is 0 (zero) based.

public int StepIndex { get; set; }

Property Value

int

Step index. Setting this from a notification subscriber will have no effect.

ValidationErrors

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.

public IEnumerable<ValidationError> ValidationErrors { get; set; }

Property Value

IEnumerable<ValidationError>

A list of validation errors - null if no validation errors are present.

See Also

To top