Orders
Order system overview
You should avoid casting back and forth between concrete Order classes such as OrderGroup and OrderForm, and abstraction interfaces such as IOrderGroup and IOrderForm. For example, it is recommended to use only one API from the time you load a cart or purchase order until you save it.
Order manipulation
Manipulation of purchase orders and related items is based on classes and methods in the EPiServer. Commerce.
Order processing
Processing of purchase orders and related items is based on classes and methods in the EPiServer. Commerce.
Order management
The Order Management user interface lets customer representatives manage orders manually when needed. Order Management is available from the Commerce Connect top menu.
Extend order classes
The order system default implementation contains many classes that you can extend with your own fields. This means that you can customize fields to all order objects to help with your business use cases.
Extend order status
In previous Commerce Connect versions, OrderStatus and OrderShipmentStatus were enums, so they could not be extended. A breaking change in Optimizely Commerce Connect 13 converted OrderStatus and OrderShipmentStatus from enums to classes.
Change default implementation
To replace implementations in the Optimizely Commerce Connect order system, update the dependency container to use your new classes. See Dependency injection for more information.
Round totals for currencies
Rounding is complex because different currencies use different numbers of decimal places. The following methods return a value with the correct number of decimals, which is determined by the input currency.
Order notifications
The TemplateService uses a provider model (XslTemplateProvider) to let different providers generate the text of custom email. This provider uses XSL to convert an order and an XSL file to a customize formatted message.
Record order activities
A wide range of events related to order/shipment status update, payment and promotion of an order will be automatically recorded and users can view it in the Order Notes section in the Order Management view. OrderActivity logs order activities from the Order Managament (CSR).
Shopping carts
The shopping cart (or basket) is where the shopping and ordering process starts. The main components of a shopping cart using the abstraction APIs are described in this topic.
Serializable carts
In the SerializedCarts data model, all cart data is stored in one table, SerializableCart. This table contains these defined and searchable columns CartId Created Modified Name CustomerId MarketId (Commerce Connect 11.
Search for orders using OrderContext
This topic describes how to work with the order search API including The capabilities and limitations of Optimizely Commerce Connect order search API classes and properties Code examples of different scenarios Description of the search stored procedure Searching for orders is a common part of ecommerce solutions, such as integrating with ERPs and custom administrative interfaces where orders are exported, filtered, or edited. You often need to load orders based on submission date, status, or particular properties or meta-field properties of the order or cart, including properties of its child objects (for example, shipments or line items).
Search for orders using abstractions
This API finds orders with a specific OrderSearchFilter for a specific TOrderGroup, then returns OrderSearchResults. OrderSearchFilter has a criteria set for filtering orders in the search results.
Create a return order form and exchange offer
How it works EPiServer. Commerce.
Calculate orders
The following calculation services are available to calculate order totals in different levels. Line item calculator .