Guide
Shopify Liquid Cheat Sheet 2026
Cart Object
Available on every page through the global cart object.
cart.item_count
Total quantity of items in the cart.
{{ cart.item_count }} {{ cart.item_count | pluralize: 'item', 'items' }}cart.items
The cart's line items.
{% for item in cart.items %}
{{ item.title }} × {{ item.quantity }} — {{ item.final_line_price | money }}
{% endfor %}cart.total_price
Total price after discounts, in cents.
{{ cart.total_price | money }}cart.total_weight
Total weight in grams.
{{ cart.total_weight | weight_with_unit }}cart.note
The order note entered by the customer.
<textarea name="note">{{ cart.note }}</textarea>cart.attributes
Custom information collected in the cart, submitted with attributes[Name] fields.
<input name="attributes[Gift message]" value="{{ cart.attributes['Gift message'] }}">Shopify stores that convert, rank higher, scale and sell more.
Builds, SEO and CRO from a Shopify Plus partner team.
Monthly send · Unsubscribe any time · Privacy policy
Shopify experts
Let's talk ecommerce, Shopify & Shopify Plus solutions.
DROPSHIP HUBS helps ecommerce brands build, improve, and grow Shopify stores. We support new builds, migrations, ongoing development, SEO, and conversion optimisation.
Our team can help plan the right approach based on your store, goals, and current challenges.
Get in touch




