Shopify update, changes to the "constraint" parameter

My developer added the advanced filters to the theme.

He uses the “constraint” constraint parameter to send the custom filter

For example

  1. Send request https://shella-demo.myshopify.com/collections/womens?constraint=custom-filter+price=0-79000

  2. Parse the custom-filter+price=0-79000 to get a custom filter, price from 0 USD to 790 USD in this example

  3. Get all products from the collection using the following liquid code

collections[collection.handle].products
  1. 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?

UPDATE.

If I open a Shopify admin in the next browser tab, this fixes the issue.

1 Like

@ShopifyTeam

What is the replacement for code in Shopify July 28 update?

collections[collection.handle].products
1 Like

Without updating the entire Shella theme, what is the fix for this collection page issue??

Has the liquid

collections[collection.handle].products

Copy

been deprecated, and thats why our collections are truncated?

Copbee

Has the liquid:

The latest theme version includes the workaround. You may download the latest theme version from your ThemeForest account.

You may also review the incremental changes here

1 Like