You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The where and reject filters in Shopify Liquid are not functioning correctly. When used to filter collections based on properties like tags, they return incorrect results—often an empty array ([]) or null, even when matching products exist.
This issue directly impacted a Scheduled Drop, preventing products from displaying as expected. This led to a loss of visibility, sales, and customer engagement, which is critical for merchants who rely on Shopify for product launches.
There were no changes to the shop theme code in the past 4 weeks, yet due to this bug, the products did not appear as intended, revealing the issue.
The syntax you are using is not valid. Both reject and where only supports two parameters (the field to filter and the value) while you are using an extra one.
You won’t be able to use those filters for filtering tags here, you will need to do a for loop to be able to use the contains operator.
The where and reject filters in Shopify Liquid are not functioning correctly. When used to filter collections based on properties like tags, they return incorrect results—often an empty array ([]) or null, even when matching products exist.
This issue directly impacted a Scheduled Drop, preventing products from displaying as expected. This led to a loss of visibility, sales, and customer engagement, which is critical for merchants who rely on Shopify for product launches.
There were no changes to the shop theme code in the past 4 weeks, yet due to this bug, the products did not appear as intended, revealing the issue.
Steps to Reproduce
Test Case 1: where Not Filtering Properly
Expected: Returns an array of products with "foo" tag.
Actual: Returns null or an empty array ([]).
Test Case 2: reject Not Filtering Properly
Video:
https://www.loom.com/share/135d72b5c61d4441a86cd2da1aafa4c2
Expected: Returns all products excluding those tagged "bar".
Actual: Returns null or an empty array ([]).
The text was updated successfully, but these errors were encountered: