Skip to main content
Returns an array of all line items in the cart.

Parameters

None

Returns

ShopifyCartLine[] Returns an empty array if the cart has not been initialized.

Examples

List cart items

Render cart items

Find specific item

Get variant options