Table of Contents

Class Ecommerce.Cart.BeforeCheckoutStepArgs

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

Provides information about order just before the order is processed in the checkout step.

public class Ecommerce.Cart.BeforeCheckoutStepArgs : CancelableNotificationArgs
Inheritance
Ecommerce.Cart.BeforeCheckoutStepArgs
Inherited Members

Examples

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Dynamicweb.Extensibility.Notifications.Subscribe(Ecommerce.Notifications.Ecommerce.Cart.BeforeCheckoutStep)]
public class EcomCartOrderBeforeCheckoutStepObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
    public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
    {
        if (args is not Ecommerce.Notifications.Ecommerce.Cart.BeforeCheckoutStepArgs notificationArgs)
            return;

        //Add code here
    }
}

Remarks

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.

StepIndex

Gets or sets the step index during the checkout step

public int StepIndex { get; }

Property Value

int

See Also

To top