CartLineMerchandise

cart · /core·type

Snapshot of the variant-level product data attached to a cart line. Captured at add-to-cart time so the cart displays correct titles and prices even when the variant is later modified or removed in the catalog.

Properties

availableForSale
boolean
compareAtUnitPrice
Money | null
id
string
image
{ altText: string | null; height: number; url: string; width: number } | null
productHandle
string

Example

const { productTitle, unitPrice } = line.merchandise;

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter

Sourcetypes.ts:59Edit the JSDoc directly

On this page