cart_line
One line of the cart - an offer variant with a quantity.
Generated from the platform code - always matches what the theme engine allows.
One line of the cart - an offer variant with a quantity. Items of cart.items.
Available on: cart page.
Properties
| Property | Type | Description |
|---|---|---|
cart_line.id |
string | Line identifier - pass it as line to /cart/change.js. |
cart_line.title |
string | Offer title. |
cart_line.variantTitle |
string or null | Variant label, for example L / Natural. Null for an offer without options. |
cart_line.url |
string | Address of the offer page. |
cart_line.quantity |
number | Number of units. |
cart_line.unitPrice |
number | Price of one unit including product options (engraving, gift wrap), in minor units. |
cart_line.linePrice |
number | Unit price times quantity, before discounts, in minor units. |
cart_line.lineDiscount |
number | Promotion discount on this line, in minor units. |
cart_line.finalLinePrice |
number | Line value after discounts, in minor units. |
cart_line.compareAtPrice |
number or null | Regular unit price when it is higher than the price in the cart - for a crossed-out price. |
cart_line.variantId |
string | Identifier of the offer variant - the id accepted by /cart/add.js. |
cart_line.product |
product |
The offer of this line. |
cart_line.options |
list | Product options the customer chose, as a list of { label, value, price }. |
cart_line.available |
boolean | False when the variant can no longer be bought. |
cart_line.problem |
string or null | Message when the line cannot be bought in this quantity (out of stock). Only on the cart page. |
cart_line.image |
media or null |
The first picture of the offer. |