Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

OrderSummary Container

Pricing breakdown showing subtotal, discounts, taxes, and grand total.

Version: 1.0.0-beta5

Configuration

The OrderSummary container provides the following configuration options:

ParameterTypeReq?Description
showTotalSavedbooleanNoShows/hides total savings amount.
updateLineItemsfunctionNoCallback to transform line items before display. Use for custom line item logic.

Slots

This container does not expose any customizable slots.

Usage

The following example demonstrates how to use the OrderSummary container:

import { render as provider } from '@dropins/storefront-quote-management/render.js';
import { OrderSummary } from '@dropins/storefront-quote-management/containers/OrderSummary.js';
await provider.render(OrderSummary, {
showTotalSaved: true,
updateLineItems: updateLineItems,
})(block);