Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We need to find a way to access all products in a collection, however, at the moment, only the first 50 are available.
Once we have a Shopify object with all the products, we would like to filter out ones containing a specific tag, then pass the new filtered object to the Paginate object to be correctly displayed.
At the moment, we are hiding the products containing that tag, but this has the side-effect of some pages in the pagination showing no products, because Paginate does not know about us hiding the products. So, it would make more sense for us to be able to provide a filtred list of products to Paginate, so that it would function as expected.
Hi you can get using ajax through this URL--
https://www.domain.com/collections/collection-name/products.json?limit=150
Thanks for the suggestion, is there any way that the response could be converted into a Shopify object after I filter out the products I don't want to display? If so I could pass that object to Paginate and use the out-of-the-box mechanism for displaying the products, which would cut down on dev time.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025