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 -%}
{{ colorName }}
{{ shop.metaobjects.color[colorName].description | metafield_tag }}
{% 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?