Skip to content

all_products

all_products is a bounded product lookup keyed by handle. It intentionally is not an enumerable catalog or a route around product pagination.

Lookup

{% assign featured_product = all_products['sandalwood-candle'] %}
{% if featured_product %}
<a href="{{ featured_product.url }}">{{ featured_product.title }}</a>
{% endif %}

At most 20 unique handles are resolved by one all_products instance during a render. Repeated access to the same handle is memoized. Missing, malformed, and over-budget handles return nil.

Properties

PropertyDescription

This lookup has no static properties. Product handles are dynamic keys.