Shopify's 128 element limit for metafields 😒

Solved

Shopify's 128 element limit for metafields 😒

Loz86
Pathfinder
94 7 19

I've created a metfield in my store to add an extra filter type "Brands" to my store's filter, however I have around 300 brands to add as elements to the created "Filter by brand" metafield but shopify apparently have a limit of 128.

It states

"Validations value for option choices has more than 128 elements."

What options/walkarounds do I have to add all my remaining brands as elements?

Accepted Solution (1)

theycallmemakka
Shopify Partner
1813 439 474

This is an accepted solution.

Hi @Loz86 ,

 

I wounder why you are using metafields for brand filter. Brand filter is by default present on the site. The vendor attribute on each product is used as a brand which can be used as a collection filter.

 

Is there any other reason why you have created Metafields for the brand?

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

View solution in original post

Replies 5 (5)

theycallmemakka
Shopify Partner
1813 439 474

This is an accepted solution.

Hi @Loz86 ,

 

I wounder why you are using metafields for brand filter. Brand filter is by default present on the site. The vendor attribute on each product is used as a brand which can be used as a collection filter.

 

Is there any other reason why you have created Metafields for the brand?

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

Loz86
Pathfinder
94 7 19

Hi @theycallmemakka 

 

Thanks very much for the reply.

 

I had noticed vendor in the filter options but never actually knew I could do it that way.

 

So thank you for pointing that out! 

 

I had read somewhere before making this post that metafields was a way of achieving what I wanted, which was correct and did work up until I hit the 128 element metafield limit imposed by shopify.

magenest
Shopify Partner
162 12 25

Hi @Loz86 

Instead of using the metafield, you can use the vendor or tags fields as a substitute for the brand.

Magenest - One-stop Digital Solution Provider
- Don’t forget to drop a thumbs-up and Mark it as a Solution if you find our response useful
- Elevate your online business with our Shopify experts and professional designers
Loz86
Pathfinder
94 7 19

Hi @magenest 

 

Thank you, yes @theycallmemakka  pointed that out to me above the other day.

Olaf2
Shopify Partner
44 2 7

Hi all,

 

We are now facing the same issue, but the metafield in question is not used for brand names. Do you have any other suggestions or workarounds?

 

Thanks.