Skip to main content

Global Objects

Global objects are available in every template. They provide access to store data, cart contents, customer information, and more.

shop

The store’s settings and information.

product

Available on product pages. Contains all product data.

Variant Object

Option & Option-Value Objects

product.options_with_values is an array of option objects, and each option’s values array holds option-value objects (the per-choice items a variant picker renders).
Option object (product.options_with_values[]): Option-value object (option.values[]):
Use {{ option_value.name }} (or {{ option_value.value }}, or just {{ option_value }}) for the label — all three yield 6-Pack. option_value.id is an internal numeric identifier, not a display value.

collection

Available on collection pages. Contains collection data and products.

Filters


cart

The customer’s shopping cart.

Line Item Object


customer

Available when a customer is logged in.
On theme-rendered account pages (templates/customers/*), customer is joined by the order and address objects. See Theme Customer Accounts for the full account object reference, routes, and forms.

article

Available on blog article pages.

blog

Available on blog listing pages.

page

Available on custom pages.
Available on search results pages.

linklists

Navigation menus defined in the theme.

settings

Theme settings from config/settings_data.json.
Settings are defined in config/settings_schema.json and accessed via settings.{setting_id}.

request

Information about the current request.

localization

Country, currency, and language settings.

recommendations

Product recommendations (on product pages).

Other Objects

template

section

Access current section data within a section file.

block

Access current block data within a block iteration.

form

Available inside {% form %} tags.

paginate

Available inside {% paginate %} blocks.