I want to display the homepage collection products on my pages. I have made a custom section for this page, but I don’t know how to show all collection products. Can anyone please help me?
Hey @ferar Please try this code
{% for product in collections.['your-collection-handle'].products %}
{{ product.title }}
{% endfor %}
If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the Accepted Solution.
Best regards
K.K
@Huptech-Web I tried this code, but it doesn’t reflect anything in the preview.
@ferar Please send me your collection handle, and I will provide the code.
You can find the handle of the collection by going to the collection page in your Shopify admin and looking at the URL. For example, if the URL is https://kaushik-dev.myshopify.com/collections/bracelet, then the handle would be a bracelet.
My collection handle offering-collection
Hey @ferar Please try this code
{% for product in collections.offering-collection.products %}
{{ product.title }}
{% endfor %}
1 Like
Working Thanks