<div class="doc-version" data-version="unstable"> <p>Represents information about the merchandise in the cart.</p> <div> <h2 id="on-this-page">On this page</h2> <ul> <li> <a href="#fields-unstable"> Fields </a> </li> <li> <a href="#types-that-return-cartline-unstable"> Types that return CartLine </a> </li> </ul> </div> <h2 id="fields-unstable"> Fields </h2> <ul class="fields"> <li> <div class="field" id="attribute-unstable"> <div class="field-name"> attribute (<a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/common-objects/attribute"><code>Attribute</code></a>) </div> <div> <p>Retrieve a cart line attribute by key.</p> <p>Cart line attributes are also known as line item properties in Liquid.</p> </div> </div> <div class="arguments-table"> <table> <tr> <th>Argument</th> <th>Description</th> </tr> <tr class="field-argument"> <td class="argument-name"> <code>key</code> (<a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/scalar#string-unstable"> <code>String</code> </a>) </td> <td class="argument-description"> <p>The key of the attribute to retrieve.</p> </td> </tr> </table> </div> </li> <li> <div class="field" id="cost-unstable"> <div class="field-name"> cost (<a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/common-objects/cartlinecost"><code>CartLineCost!</code></a>) </div> <div> <p>The cost of the merchandise line that the buyer will pay at checkout.</p> </div> </div> </li> <li> <div class="field" id="id-unstable"> <div class="field-name"> id (<a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/scalar#id-unstable"><code>ID!</code></a>) </div> <div> <p>The ID of the cart line.</p> </div> </div> </li> <li> <div class="field" id="merchandise-unstable"> <div class="field-name"> merchandise (<a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/common-objects/merchandise"><code>Merchandise!</code></a>) </div> <div> <p>The merchandise that the buyer intends to purchase.</p> </div> </div> </li> <li> <div class="field" id="quantity-unstable"> <div class="field-name"> quantity (<a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/scalar#int-unstable"><code>Int!</code></a>) </div> <div> <p>The quantity of the merchandise that the customer intends to purchase.</p> </div> </div> </li> <li> <div class="field" id="sellingplanallocation-unstable"> <div class="field-name"> sellingPlanAllocation (<a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/common-objects/sellingplanallocation"><code>SellingPlanAllocation</code></a>) </div> <div> <p>The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.</p> </div> </div> </li> </ul> <h2 id="types-that-return-cartline-unstable"> Types that return CartLine </h2> <ul> <li> <a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/common-objects/cart#lines-unstable"> <code>Cart.lines</code> </a> </li> <li> <a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/common-objects/cartdeliverygroup#cartlines-unstable"> <code>CartDeliveryGroup.cartLines</code> </a> </li> <li> <a href="/api/functions/reference/local-pickup-delivery-option-generator/graphql/common-objects/fulfillmentgroup#lines-unstable"> <code>FulfillmentGroup.lines</code> </a> </li> </ul> </div>