Cart
Loops through all items currently in the cart.
Copy or embed this snippet
{% for item in cart.items %} <img src="{{ item.image | image_url: width: 100 }}"> <h3>{{ item.product.title }}</h3> <p>Qty: {{ item.quantity }}</p> <p>{{ item.final_line_price | money }}</p> {% endfor %}
Embed this snippet on your blog or docs — attribution link appreciated: HTMLToLiquid Converter · Convert to Shopify section →
Cart Item Count & Total
Displays the total number of items and the total price of the cart.
Empty Cart Check
Shows different markup when the cart has zero items.
Cart Subtotal vs Total
Displays line totals; cart.total_price includes discounts where applicable.
Free AI-powered converter — OS 2.0 compatible output with schema validation.