Liquid objects

Liquid objects contain attributes to output dynamic content on the page. For example, the product object contains an attribute called title that can be used to output the title of a product.

Liquid objects are also often referred to as Liquid variables.

To output an object's attribute, wrap the object's name in {{ and }}, as shown below:

Global objects

The following objects can be used and accessed from any file in your theme, and are defined as global objects or global variables.


The all_products object contains a list of all the products in your store. You can use all_products to access products by their handles. More info ›


The articles object can be used to retrieve an article using its handle.


The blogs object returns all the blogs in your store. More info ›


The canonical_url object returns the canonical URL for the current page. The canonical URL is the page's "default" URL with any URL parameters removed.

For products and variants, the canonical URL is the default product page with no collection or variant selected. For example, for a product in a collection with a variant selected:

The canonical URL is the product page:

Google's Search Console Help provides more information on canonical URLs.


The cart object returns your store's cart. More info ›


The collections object returns all the collections in your store. More info ›


The curre