## TL;DR

In Shopify Liquid, pull a known product by handle with all_products.[your-handle] instead of building a separate API call or duplicating markup in JavaScript. It works for up to 20 distinct handles per page, so use it for featured or related products, not for iterating a whole catalog.

## Steps

1. In Shopify Liquid, pull a known product by handle with all_products.[your-handle] instead of building a separate API call or duplicating markup in JavaScript.

2. It works for up to 20 distinct handles per page, so use it for featured or related products, not for iterating a whole catalog.

## When to use

You are seeing this: The accepted answer (40 votes) points to the all_products global: assign someProduct = all_products.[your-handle] gives you the full product object without any extra API call or JavaScript. Use this skill when you run into "Fetching a specific product in Shopify Liquid with all_products".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
