Shopify - Useful Links

How to reach cart object on checkout page in Shopify checkout.liquid

0 Shares
0
0
0
0
0
0
0

Use liquid object checkouts

for e.g. to read Type of Products write. line_item.product.type

{% for line_item in checkout.line_items %}
        <div class="lineItem">
          <span class="name">{{ line_item.product.title }}</span>
          <span class="sku">{{ line_item.sku }}</span>
          <span class="quantity">{{ line_item.quantity }}</span>
          <span class="unitPrice">{{ line_item.price | money_without_currency | remove: ',' }}</span>
          <span class="salePrice">{{ line_item.price | money_without_currency | remove: ',' }}</span>
          <span class="totalPrice">{{ line_item.price | times: line_item.quantity | money_without_currency | remove: ',' }}</span>
          <span class="imageUrl">{{ line_item.image | image_url }}</span>
        </div>
  {% endfor %}

Checkout Liquid – Click Here

Checkout Object – Click Here