Skip to Content

CartItem

Represents a line item in the cart, exposing product, pricing, quantity, and attribute information for GraphQL APIs.

Properties

is_linkable

Tells whether this item is linkable in the store.

id

Returns the unique identifier for this line item.

product_id

Returns the associated product ID for this line item.

requires_shipping

Indicates if this item requires shipping.

category_path

Returns the category path used when the product was added to the cart.

url

Returns the product URL for this item as used when added to the cart.

gtin

Returns the product GTIN (Global Trade Item Number).

model

Returns the product model number for this item.

manufacturer

Returns the manufacturer for this product.

type

Returns the item type (e.g., product, bundle, or gift_card).

attributes

Returns the selected attributes for this item as an array.

title

Returns the title of this line item.

description

Returns the description of this line item.

attributes_label

Returns a comma-separated list of selected attributes for this item.

image

Returns the image URL for this line item, if available.

deliverytime

Returns the delivery time in days for this item.

quantity

Returns the quantity of this item in the cart.

line_price

Returns the total price for this line item (quantity x unit price).

net_price

Returns the net price (excluding tax) for this line item.

unit_price

Returns the unit price for this item.

rate

Returns the tax rate for this item as a decimal.

tax

Returns the tax amount for this line item.

stock_out

Indicates if this item is sold out and cannot be purchased.

weight_in_grams

Returns the weight of this item in grams.

shipping_weight_in_grams

Returns the shipping weight of this item in grams.

unit_name

Returns the unit name for this item (e.g., piece, kg).