--- url: https://docs.youcan.shop/themes/objects/cart_item.md --- # `cart_item` object An item from the [cart](cart) object. ### Properties *** | Name | Type | Description | | -------------------- | :------------------------------: | :------------------------- | | `id` | [string](../basics/types#string) | Cart item identifier | | `cart_id` | [string](../basics/types#string) | Cart identifier | | `product_variant_id` | [string](../basics/types#string) | Product variant identifier | | `quantity` | [number](../basics/types#number) | Cart item quantity | | `price` | [number](../basics/types#number) | Cart item price | | `image` | [string](../basics/types#string) | Cart item product image | | `name` | [string](../basics/types#string) | Product name | | `compare_at_price` | [number](../basics/types#number) | Compare at price of the variant, or nil | | `variations` | [array](../basics/types#array) | Selected variation options | | `inventory` | [number](../basics/types#number) | Variant inventory, or nil when the product does not track inventory | | `url` | [string](../basics/types#string) | Path of the product page |