Dynamicweb.eCommerce.Orders Namespace : Order Class |
'Declaration
<SerializableAttribute()> Public Class Order Implements Dynamicweb.eCommerce.Prices.IWithPrice
[SerializableAttribute()] public class Order : Dynamicweb.eCommerce.Prices.IWithPrice
class MyPage : System.Web.UI.Page { private Dynamicweb.eCommerce.Cart.ModuleSettings _settings; public Dynamicweb.eCommerce.Orders.Order GetOrder() { Dynamicweb.eCommerce.Orders.Order order = Dynamicweb.eCommerce.Common.Context.Cart; //Empty cart if no orderlines exists if (order.OrderLines.CountOnlyProducts == 0) { Dynamicweb.eCommerce.Frontend.Cart.CartCatch.ClearCart(); return null; } else { //Set country selection if (order.ShippingCountrySelection != _settings.CountryForShipping || order.PaymentCountrySelection != _settings.CountryForPayment) { order.ShippingCountrySelection = _settings.CountryForShipping; order.PaymentCountrySelection = _settings.CountryForPayment; order.)); } return order; } } }
System.Object
Dynamicweb.eCommerce.Orders.Order
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2