Class Ecommerce.Cart.AfterCustomerCountryIsChangedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about order and country just after customer country is changed by the user.
public class Ecommerce.Cart.AfterCustomerCountryIsChangedArgs : NotificationArgs
- Inheritance
-
Ecommerce.Cart.AfterCustomerCountryIsChangedArgs
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterCustomerCountryIsChanged)]
public class EcomCartAfterCustomerCountryIsChangedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterCustomerCountryIsChangedArgs afterCustomerCountryIsChangedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.AfterCustomerCountryIsChangedArgs;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.Cart.AfterCustomerCountryIsChangedArgs
Properties
Country
Gets or sets the country.
public Country Country { get; set; }
Property Value
- Country
Country. Setting this from a notification subscriber will have no effect.
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.