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

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.