Class Ecommerce.Cart.CreatedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about the created cart.
public class Ecommerce.Cart.CreatedArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.CreatedArgs
- Inherited Members
Examples
using Dynamicweb.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
/// <summary>
/// Subscribing on Cart.Loaded event
/// </summary>
[Subscribe(Loaded)]
public class EcomCartLoadedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not LoadedArgs myArgs)
return;
}
}
Remarks
The passed NotificationArgs is Loaded
Constructors
CreatedArgs()
Initializes a new instance of the Ecommerce.Cart.CreatedArgs class.
public CreatedArgs()
Properties
Order
Gets or sets the order.
public Order Order { get; set; }
Property Value
- Order
The order.