London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
The order system contains many classes which can be extended with your own implementation. This means that you can create your own Cart and/or LineItem class implementations to replace the one included in EPiServer Commerce.
The order classes that you can extend are:
Classes referred to here are available in the following namespaces:
To access order meta objects, each of the order meta classes have a dictionary of meta fields accessible by the root object.
Example:accessing meta fields from different order meta fields
Cart newCart = OrderContext.Current.GetCart("myname", newCustomer);
//This is the meta field data access
string myCartField = newCart["myField"].ToString();
string orderformField = newCart.OrderForms[0]["myOrderFormField"].ToString();
string paymentField = newCart.OrderForms[0].Payments[0]["myPaymentField"].ToString();
string shipmentField = newCart.OrderForms[0].Shipments[0]["myShipmentField"].ToString();
Last updated: Oct 21, 2014