How can I filter products by multiple metafield values on OS2?

Topic summary

  • Issue: On Shopify Online Store 2.0 (OS2), filtering collections by multiple dietary attributes is blocked because product metafields appear to accept only a single value, and tag-based filtering from OS1 is no longer available.

  • Context: Metafields are custom product fields used for filterable attributes (e.g., vegan, gluten-free).

  • Impact: Items that should match several filters cannot be discovered with native filters, which users find counterintuitive.

  • Workaround: One member implemented a theme-specific JavaScript solution using a comma-separated input rather than preset options; it’s not generic and requires custom development.

  • Requested feature: Allow multiple values per metafield and enable multi-select filtering (e.g., an “Allow multiple values” option when limiting to preset choices).

  • Actions/Status: OP will consult their theme developer; community seeks an official Shopify response. No native solution confirmed; discussion remains open.

Summarized with AI on February 21. AI used: gpt-5.

We’re a bakery that wants customers to be able to filter product collections by dietary values (vegan, gluten-free, nut-free, etc.). Some items have 2+ of these values, but with metafields it seems we’re only able to assign one value to a product.

I could do this on OS1 with tags, but I can’t figure out how to do it with metafields on OS2 and as far as I can tell filtering by tags is no longer an option.

Am I missing something or is there another way to do this?

6 Likes

Hi there @Myrrhe

Commenting here for a little friendly ‘bump’ as this really is a problem with using the built in filtering functionality based on metafields. Would be lovely with an official response or reaction to this, as it seems rather counter-intuitive that you are not able to achieve this. I am looking for a solution for this as well.

Thanks for the bump, @NikolajDTAILS .

Agreed. It seems so counterintuitive to remove such a basic feature that I feel like I must be missing something. I’m going to reach out to the theme builder to see if they have any input.

Absolutely.

We’ve managed to do a workaround but it is in no way generic. It’s based off javascript and a comma separated input string instead of preselect options.

It is also specific to the theme, so in order to achieve this, you need to make it (or have it made) specifically to your theme.

Really hope we get that little checkbox on the metafield when we do “Limit to preset choices” that we can also tick off “Allow multiple values”

Really hope we get that little checkbox on the metafield when we do “Limit to preset choices” that we can also tick off “Allow multiple values”

Need this!

Yes, we need a solution to this problem as well. It’s such a basic feature it blows my mind how this could have been left out.