[2.0] Age group filtering with Metafields

nosenation
Tourist
5 0 2

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.

Replies 14 (14)
Jesse_Michel
Shopify Expert
19 0 3

I was about to post about the exact same issue. Did you ever find a solution?

- Jesse Michel | Shopify Expert
nosenation
Tourist
5 0 2

Nope, still nothing. Shopify should support multiple values per 1 metafield (like a list of values separated with comma).

amorlett
Excursionist
34 2 6

adding + kinda confuses shopify try 1Plus or 1_plus  instead.. also you can look into adding filters via tags 

Jesse_Michel
Shopify Expert
19 0 3

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.

- Jesse Michel | Shopify Expert
amorlett
Excursionist
34 2 6

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)

nosenation
Tourist
5 0 2

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.

Kromann
New Member
2 0 0

This is also something that makes the new filters irrelevant for us, unfortunately.

There are many instances where a product need multiple values for the same filter:

- Anything with a range, eg. socks (size 40-44). I need to parse those as '40,41,42,43,44' to be useful in a filter.

- Colors, eg. a shoe with two colors (red/blue). I need to parse those as 'red,blue'

- Anything that fits in multiple subcategories, eg. a shoe suitable for both running and training. I need to parse those as 'running,training'.

Looking forward to an answer from Shopify

amorlett
Excursionist
34 2 6

you can do capture at that point or make your own custom metafields 

Kromann
New Member
2 0 0

@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?