Hi
I have a store where age groups filtering is core functionality. Example age groups: 1 year +, 2 years +, 3 years + etc. Those groups mean that product is for at least X years old kids, NOT only for X years old ones. Obvious one is that 1 product can be assigned to multiple product groups (1y, 2y, 3y etc.). I would like to have this kind of functionality in 2.0 shopify generation theme.
I know that filters just recently received a small update with support for product metafields. Cool, but still lacking few things for my use case. Now I can create a value that looks like this: â1 year +, 2 years +â but the filtering system recognizes this whole string as 1 single value. Not a list of comma separated ones.
Do you have any kind of solution for this âspecificâ type of filtering?
Lack of normal tags filtering is hurting badly, but metafields would also work fine if âfixedâ a little.
Yeah Shopify kind of seems like itâs trying to move us away from filtering with tags. Their documentation explicitly notes that you cannot use their new filters in conjunction with tag filters. From a data perspective, it makes a lot more sense to filter by metafields, but they really need to support filters for multiple values on a single field, otherwise itâs a pretty big step back. Iâm guessing there may be a way to work around this but for now this means Iâll need to use Boosts Product Filter & Search instead of the built in filters, unfortunately, just so I can have this feature.
yeah trying to move away from tag filters as well but doesnât seem possible without integrating apps with graphQL which is a total shame and scam⌠it shouldnât be so complex to do something other platforms do easily and for free (no apps)
adding + kinda confuses shopify try 1Plus or 1_plus instead.. also you can look into adding filters via tags
Tried it without + like âvalue, value2â and still same effect. For Shopify this kind of string is always 1 value.
yeah trying to move away from tag filters as well but doesnât seem possible without integrating apps with graphQL which is a total shame and scam⌠it shouldnât be so complex to do something other platforms do easily and for free (no apps)
I agree. This should be a built-in functionality. I donât want 3rd party apps for functionalities that are common in other ecommerce platforms.
@amorlett Not sure I understand your reply. Can you already do this? It looks like the new filtering supports comma-separated values (see under 'Accepted Values here: https://shopify.dev/themes/navigation-search/filtering). I just tested this with the new Dawn theme and that has no support for it. However, it does look like the limitation is at the API level. Is the documentation/API correct?
Weâre having the same issue. Tried both versions of filtering by multiple values of the same metafield and nothing works. Documentation is incorrect, comma-separated list does not work. However, single values work fine.
Edit: It actually isnât limited to metafields. Multiple product options donât work with either solution provided in the docs.
Update: I discovered the comma separate metafield values actually works on the development site, however it does not work locally using Shopify CLIâs Theme Serve.
Hmm example you mentioned is connected with Color. Maybe it will work if you use âstandardâ variant types, like product color, but not the custom ones (like Age).
Iâm experiencing the exact same issue. There doesnât seem to be a fix for this yet. Not supported in the dawn theme or the Canopy which Iâm using. Does anyone use an app for this? Although thatâs definitely not my preferred option, but filters are very limited since Shop 2.0
Iâve had to implement this on a clientâs website. It can be done, but it requires some liquid and javascript knowledge. Iâve written up a blog post on how I got it working if you are interested: https://iamketan.design/blog/shopify-filters-metafields
It looks like Shopify has recently solved this problem in their April 6th changelog by allowing to create multiple values for the single line text field.