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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024