We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Exceeded maximum number of unique handles for metaobject handle

Exceeded maximum number of unique handles for metaobject handle

Avex
Shopify Partner
13 0 12

I have a metaobject called `color` that stores additional information about the colorways my products come in (description, marketing image, etc). Currently, I am handelizing and matching the product's variant color names with the names of the metaobject to show this stuff:

 

    {% if option.name contains 'Color' %}
      {%- capture colorName -%}{{ value | handleize }}{%- endcapture -%}
      <div>
        {{ colorName }}
        <p>{{ shop.metaobjects.color[colorName].description | metafield_tag }}</p>
        <img src="{{ shop.metaobjects['color'][colorName].image_url.value }}" width="150">
      </div>
    {% endif %}

 

 

I have a product with more than 20 colors and after the 20th I see this error on the PDP:

 

Liquid error (snippets/product-variant-options line 70): Exceeded maximum number of unique handles for color.

I know that there is a limit of 20 unique handles with `all_products` on a page, is there also a limit of metaobject  handles? Is there a limit if using GraphQL?

Replies 5 (5)

Jonathan_ezApps
Shopify Partner
25 0 6

Running into this issue as well for a similar use case with displaying paint swatches. Hoping for an increase in handles soon.

Print and save invoices directly from your order page: https://apps.shopify.com/ezinvoices
jessie_monument
Shopify Partner
16 0 12

Me too! Need this function so we dont have to do a bunch of duplicate data entry for color information.

Keihen
Shopify Partner
2 0 0

A year has passed and there is still no update

Havik
Excursionist
16 3 8

What the heck. This issue is still not resolve. I just encountered it right now as we shifting our catalog to be more dynamic. I thought that with an explicit calling as the code know which handle to pull from the parent metaobject definition should be enough to call it once and don't have a limit, unlike for loops. This is so hand bound limitation from Shopify.

elixirlouise
Shopify Partner
14 1 1

Same here trying  to use metaobject on facets but @Shopify isn't working on this VERY BASIC functionality. Very disappointing