The CartSummaryGrid container manages and displays the contents of the shopping cart in a grid layout. Its state is managed by the CartModel interface, which contains the cart’s initial data and is passed down to any child components.
CartSummaryGrid container
Configurations
The CartSummaryGrid container provides the following configuration options:
Option
Type
Req?
Description
children
CartModel
Yes
Child elements to be rendered inside the container.
initialData
string
Yes
Initial cart data to preload the component. Defaults to null
routeProduct
function
No
Callback function that returns a product.
routeEmptyCartCTA
function
No
Callback function that returns an empty cart.
The CartModel object has the following shape:
Example configuration
The following example demonstrates how to render the CartSummaryGrid container with the routeProduct and routeEmptyCartCTA callbacks: