Cart LinesAPI
The APIs for interacting with the cart lines.
Anchor to orderstatusapiOrderStatusApi
The API object provided to this and other customer-account.order-status
extension targets.
A list of lines containing information about the items the customer intends to purchase.
Anchor to useCartLinesuse Cart Lines()
Returns the current line items for the checkout, and automatically re-renders your component if line items are added, removed, or updated.
Anchor to cartlineitemapiCartLineItemApi
The API object provided to this and other cart-line-item
extension targets.
The cart line the extension is attached to.
Anchor to useTargetuse Target()
Returns the cart line the extension is attached to. This hook can only be used by cart-line-item
extension targets.
Anchor to useTarget-returnsReturns
CartLine
The line item additional custom attributes.
The details about the cost components attributed to the cart line.
Discounts applied to the cart line.
These line item IDs are not stable at the moment, they might change after any operations on the line items. You should always look up for an updated ID before any call to because you'll need the ID to create a
object.
Sub lines of the merchandise line. If no sub lines are present, this will be an empty array.
The merchandise being purchased.
The quantity of the merchandise being purchased.