Dynamicweb 8 Documentation
Order Class
Members  Example 

Represents information about an order.
Object Model
Order ClassOrderCaptureInfo ClassCurrency ClassOrder.DebuggingInfoCollection ClassOrder.DebuggingInfo ClassOrderField ClassOrderFieldCollection ClassOrderField ClassOrderFieldValueCollection ClassOrderFieldValue ClassOrderLineCollection ClassOrderLine ClassOrderState ClassOrderStateCollection ClassOrderState ClassPriceInfo ClassPriceInfo ClassPriceInfo ClassOrderLineCollection ClassOrderLine ClassProductCollection ClassProduct ClassPriceInfo ClassShopCollection ClassShop ClassPriceInfo ClassPriceInfo ClassPriceInfo ClassTrackAndTrace Class
Syntax
Example
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;
       }
   }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Orders.Order

Requirements

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

See Also

Reference

Order Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback