All things Shopify and commerce
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?
Solved! Go to the solution
This is an accepted solution.
Hey @ferar Please try this code
{% for product in collections.offering-collection.products %}
<p>{{ product.title }}</p>
{% endfor %}
Hey @ferar Please try this code
{% for product in collections.['your-collection-handle'].products %}
<p>{{ product.title }}</p>
{% 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
@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
This is an accepted solution.
Hey @ferar Please try this code
{% for product in collections.offering-collection.products %}
<p>{{ product.title }}</p>
{% endfor %}
Working Thanks
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024