Information about an item in a cart that a customer intends to purchase. A cart line is an entry in the customer's cart that represents a single unit of a product variant. For example, if a customer adds two different sizes of the same t-shirt to their cart, then each size is represented as a separate cart line.
Attribute
)
The custom attributes associated with a cart to store additional information. Cart attributes allow you to collect specific information from customers on the Cart page, such as order notes, gift wrapping requests, or custom product details. Attributes are stored as key-value pairs.
Cart line attributes are equivalent to the
line_item
object in Liquid.
Argument | Description |
---|---|
key
(
String
)
|
The key of the cart attribute to retrieve. For example, |
CartLineCost!
)
The cost of an item in a cart that the customer intends to purchase. Cart lines are entries in the customer's cart that represent a single unit of a product variant. For example, if a customer adds two different sizes of the same t-shirt to their cart, then each size is represented as a separate cart line.
ID!
)
The ID of the cart line.
Merchandise!
)
The item that the customer intends to purchase.
Int!
)
The quantity of the item that the customer intends to purchase.
SellingPlanAllocation
)
The selling plan associated with the cart line, including information about how a product variant can be sold and purchased.