Global objects are available in every template, section and snippet unless a section says otherwise.
settings
Global when a design preset is available.
| Properties | Returns |
|---|---|
<setting_id> |
Configured setting coerced according to the schema |
font_families, web_font_families |
Font collections |
metaobjects
Shop storefront and dynamic sources.
| Properties | Returns |
|---|---|
<type>.<handle> |
Metaobject entry |
<type>.values, <type>.values_count |
Entries and their count |
<field>.value, <field>.type, <field>.key |
Typed field value and metadata |
system.id, system.type, system.handle, system.url |
Entry metadata |
closest
Global with block-aware lookup.
| Properties | Returns |
|---|---|
product, collection, article, blog, page, metaobject |
Nearest matching resource from the current rendering context |
all_products, images, articles
Global lookup collections.
| Properties | Returns |
|---|---|
[key] |
Product by handle, image by key or article by key, respectively |
articles.first |
First article |
collections, blogs, pages, linklists, menus
Global collections; menus aliases linklists.
| Properties | Returns |
|---|---|
[handle] |
Resolved collection, blog, page or menu |
collections.all, blogs.all, pages.all, linklists.all |
Enumerable resources |
contentforlayout
Layout only, where it contains the rendered page content.
contentforheader, contentforindex
Header markup on shops and legacy dynamic section output for the index template.
additionalcheckoutbuttons, contentforadditionalcheckoutbuttons
Shop storefront; the first assign is a boolean and the second renders checkout-button markup.
| Properties | Returns |
|---|---|
any?, present? |
Whether rendered additional checkout buttons exist |
platform_brand
Global and white-label aware.
| Properties | Returns |
|---|---|
display_name, logo_url |
Active platform brand name and logo URL |
urlparams, adsrequest, flash, parents, currenttagfilters, now, locale, documentationurl, poweredbylink, canonicalurl
Default storefront context. Values include query params, ads-request boolean, flash messages, parent resources, tag filters, current time, locale, and URLs or branding markup. Request-related assigns depend on a request, and flash is shop-specific.
cookies
Default storefront context.
| Properties | Returns |
|---|---|
[name] |
Cookie value |
lists, visited, cart_actions
Default storefront tracking lists.
| Properties | Returns |
|---|---|
name, id, items, item_count, items_count |
Tracking list and count |
product_items, product_items_count, page_items, page_items_count, collection_items, collection_items_count |
Typed tracking entries and counts |
products, pages, collections, last_object_url, breadcrumb_links |
Resources and navigation derived from the list |
paymentmethods, paymentmethod, payment_icon
Shop storefront and checkout payment context.
| Properties | Returns |
|---|---|
all, universal, universal? |
Payment method collection and gateway availability |
id, name, title, custom_title, payment_gateway_title, active, active?, cost, description, card_types, payment_icons, external?, supports_local_pickup?, local_pickup_active, available_for_current_context? |
Payment method display and eligibility data |
name, label, group, path, image_path |
Payment icon metadata |
predictivesearch, predictivesearch.resources
Predictive-search section render when the feature is enabled.
| Properties | Returns |
|---|---|
performed, terms, types, resources |
Search state and grouped results |
products, collections, pages, articles |
Result lists |
reservation, reservations
Global and product reservation collections.
| Properties | Returns |
|---|---|
all, pending, redeemed, expired |
Reservation subsets |
id, name, stock_reduced, expires_at, expired_at, redeemed_at, product, pending?, expired?, redeemed? |
Reservation state and associated product |