The OrderSummary container displays a detailed summary of the shopper’s order. It includes the subtotal, taxes, shipping costs, and total amount due. It optionally applies discounts or coupons.
OrderSummary container
This container supports the Coupon and EstimatedShipping slots.
Configurations
The OrderSummary container provides the following configuration options:
children
VNode[]
No
The child elements to be rendered inside the order summary.
initialData
CartModel | null
No
The initial data for the order summary. Defaults to null.
routeCheckout
function
No
Function to generate the URL for the checkout page.
slots
Slot
No
Slot props for customizing the estimate shipping and coupons display.
errors
boolean
Yes
Flag to indicate if there are errors in the order summary.
showTotalSaved
boolean
No
Flag to show the total amount saved in the order summary.
enableCoupons
boolean
No
Flag to enable or disable the coupons section.
updateLineItems
function
No
Function to update the line items in the order summary. Defaults to returning the same items.
The CartModel object has the following shape:
Supported slots
The OrderSummary container supports the Coupons and EstimateShipping slots.
Example configuration
The following example demonstrates how to render the OrderSummary container with the EstimateShipping and Coupons slots: