Home » Developing » Developing in Litium Studio » Litium Studio ECommerce » Order
A customer order placed in ECommerce is kept in a entity object called "Order". The Order object has following main components:
- Order: Keeps basic information about order, and calculated fields of total order. (See Pricing Feileds of an order)
- Order Rows: Products purchased & its quantity
- Delivery and Delivery Rows: Information about Delivery
- Customer Info: Information about customer
- Payment Info: Information about payment
- Addresses: Address information of delivery, customer and billing
- Discounts and Fees: Discounts and fees applicable to the order
- Order Campaigns: Campaings applicable at order level
- Additional Info: Additional information about Order, Delivery or Payment
Following is a ER Diagram, as how the order object appears from a relational data perspective:

Prerequisites for Creating a Order Entity Object
To create a order object, you will need to have following enitities
- A Currency: This is found in Foundation. You can create currencies from Litium Studio Control Panel.
- Delivery Provider: You can create the providers from ECommerce Settings.
- Delivery Methods: You can create the delivery methods from Ecommerce Settings.
- Payment Providers: You have to configure payment providers you would like to use.
ECommerce campaigns are optional, they will give you special prices. You don't need to specifically attach a campaign to a order when creating the order, they will get applied by themselves into the order when order total calculations are running. see more info on Campaigns.
Creating the Order Object
To create the order object, rely on yourCheckout Flow. The checkout flow has a method specifically for creating the order, which you can change and implement yourself. You should rely on the checkout flow for creating all other information, such as Customer Information, Deliveries, Etc.
Comments made
No comments are made
You need to be logged in to make a comment