My developer added the advanced filters to the theme.
He uses the “constraint” constraint parameter to send the custom filter
For example
-
Send request https://shella-demo.myshopify.com/collections/womens?constraint=custom-filter+price=0-79000
-
Parse the custom-filter+price=0-79000 to get a custom filter, price from 0 USD to 790 USD in this example
-
Get all products from the collection using the following liquid code
collections[collection.handle].products
- Apply custom filter to the first 1000 products from the collection.
It works fine for 2+ years until Jul 30.
I believe the Shopify release the update and the code is not working anymore.
Now the collections[collection.handle].products code doesn’t return all products (up to 1000 products).
Now it returns the filtered collection by constraint=tags
Can somebody from Shopify look into this issue and give more information about the Shopify update?
Is there a workaround?