Cart containers
The cart drop-in component consists of two containers: Cart
and MiniCart
. Configuration options for both containers are provided below.
Configurations
The following configuration options are available for the Cart
and MiniCart
containers:
Cart
MiniCart
InitialData
The initialData
property is an object that contains the initial cart data to preload the component. This property is initially set to null. When the cart recieves a cart data event, initalData is set and follows the CartModel
interface:
View the Example configuration: Cart
section for an example of how to use this property for the Cart
container.
View the Example configuration: MiniCart
section for an example of how to use this property for the MiniCart
container.
Example configuration: Cart
The following example data demonstrates how the Cart
container is configured:
Example configuration: MiniCart
The following example data demonstrates how the MiniCart
container is configured: