The slots for the CartSummaryList container allow you to customize the appearance of the cart summary list.
Heading slot
The Heading slot allows you to add content to the top of the CartSummaryList container.
EmptyCart slot
The EmptyCart slot allows you to add content to the CartSummaryList container when the cart is empty.
Thumbnail slot
Define a callback function in the Thumbnail slot of the CartSummaryList container to modify or replace the thumbnail section for each item in the cart.
The context object passed to the callback function includes an item property that contains the item data with the following type:
Example extension
The following example demonstrates how to extend the Thumbnail slot.
Footer slot
The Footer slot allows you to add content to the bottom of the CartSummaryList container.
The following example demonstrates how to extend the Footer slot by adding a promotional cart rule to each product in the cart.
ProductAttributes slot
The ProductAttributes slot allows you to add custom content to the CartSummaryList container.
The following example demonstrates how to add the Fashion Material and Fashion Style product attributes to each product in the cart.
CartSummaryFooter slot
The CartSummaryFooter slot allows you to add content to the bottom of the CartSummaryList container.
OrderSummary slots
The OrderSummaryProps interface defines two slots for customizing the appearance of the order summary.
EstimateShipping slot
The EstimateShipping slot allows you to add estimated shipping information to the OrderSummary container.
The following example demonstrates how to add the Estimate Shipping layout to the OrderSummary container.
Coupons slot
The Coupons slot allows you to add the Coupons layout to the OrderSummary container.
The following example demonstrates how to enable coupons to the OrderSummary container.