CartLine
●cart · /core·type
A single line item in a , combining a quantity, merchandise
snapshot, and line-level cost breakdown. The L generic carries optional
provider-specific extensions (from ).
Properties
PROPTYPEDESCRIPTION
Example
const totalItems = cart.lines.reduce((n, l) => n + l.quantity, 0);Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter
MetadataOpen in GitHub ↗
CartLineMerchandise
Snapshot of the variantlevel product data attached to a cart line. Captured at addtocart time so the cart displays correct titles and prices even when the varia
CartMiddleware
Higherorder function that wraps a to inject crosscutting behavior (logging, retrying, tracing). Middleware layers compose into a single pipeline via .