Need Help: Metafield Filter Not Showing Products from Multiple Groups

Topic summary

A user is experiencing issues with Shopify’s Search & Discovery metafield-based product filters. They’ve configured filters using product metafields organized into multiple groups (e.g., Area 1-3 in Group 1, Grid 1-3 in Group 2).

Core Problem:

  • Selecting filters from Group 1 displays products correctly
  • Adding selections from Group 2 causes all products to disappear with “Product unavailable” message
  • Goal is to allow simultaneous selections across different metafield groups

Current Status:

  • User has already set filter logic to OR (confirmed via screenshot)
  • Attempted AI-generated code solutions without success
  • Prefers metafield-based approach over native tags/variants due to Shopify’s limitation of only two filter types plus tags

Suggested Troubleshooting:
Another user recommended checking:

  1. Filter logic configuration in Shopify
  2. Theme filtering code modifications
  3. Native tag/variant filtering alternatives
  4. External filtering libraries

Unresolved Questions:

  • Whether metafield filters can support cross-group selections
  • What specific theme code changes are needed
  • If the current approach is technically feasible within Shopify’s constraints
Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hi everyone, I’ve created filters using Search & Discovery with product metafields, and all my filters are based on metafields. However, I can only select from one group at a time, and the products displayed are based on my selection.

But I want to be able to select from two different groups simultaneously.

Example:

Group 1:
[:check_mark:] Area 1
[:check_mark:] Area 2
[:check_mark:] Area 3

Group 2:
[:check_mark:] Grid 1
[:check_mark:] Grid 2
[:check_mark:] Grid 3

The products displayed should match all my selected filters.

Current issue:
When I select from Group 1, the products are displayed correctly. But after I finish selecting from Group 1 and start selecting from Group 2, no products are shown, and it says “Product unavailable.”

I’ve already tried AI coding, but there is still no solution.

Does anyone know how to fix this issue?

2 Likes

It sounds like your current filtering logic is behaving as if it’s applying an “AND condition across groups” rather than properly allowing selections from multiple gruops to filtermproducts dynamically.

Here are a few things to check for issues.

  1. Check your Filter Logic in Shopify.
  2. Modify Your Shopify Theme Filtering Code.
  3. Use Shopify’s Native tag or variant Filtering (If Applicable)
  4. Consider Using an External Filtering Library

Follow these steps to make sure your filtering work properly.

If you need more help you can reach me out.

Thanks

Ohh okay, for step 1, I’ve already set everything to use OR filter logic. For step 2, what exactly do I need to change? Does this mean I can’t use filter metafields? And selecting from different filter groups doesn’t work either?

Also, I don’t want to use native tag or variant filtering since my filters are all built using metafields,


I need to use multiple filters, and as we know, Shopify only allows two types plus tags.

Really appreciate your help on this, thanks a lot!