Osiset Code ramblings.

all_products... finally

Shopify has finally implemented a global variable for accessing products.

Shopify has global variables for many things like Collections, Linklists, pages, etc, so you can do things such as access a collection by its handle collections.my-cool-toys.products. However, it always lacked the ability to look up products by their handle until now.

There’s no documentation yet for the new variable but as the Github comment states, simply use all_products['handle-here']

<img src="{{ all_products['mario-party-game'].featured_image.src | img_url: 'medium' }}">