Caution:
This post was published in 2018 and may contain
information, techniques, or code examples that are no longer
current. Please double-check official documentation and
modern best practices before using anything from this article.
The code below will allow you to display a set of product variations on a Shopify product collection pages.
Set this code in the collections page product loop, or within the liquid snippet that controls the display of products. On line three I’ve specified “Weight” as the option I want to display so on the list page the customer can see that I have 25ml, 50ml, and 100ml product sizes available.
My Shopify Expertise
If you are planning a new e‑commerce store, considering a platform upgrade or looking for ongoing Magento support, I can provide the expertise you need. Based in Northern Ireland and working with clients locally and internationally, I deliver solutions that help businesses grow.