Product color swatches #2717
-
|
I've updated the hydrogen to the latest 2024.10.1 and tried to use new product options (Skeleton template-based), so I updated the product query to include product option swatches: How to add actual swatches to product variants in Shopify Admin UI? So far I linked color options to Shopify default Color metaobject and configured actual color values, but Storefront API always returns swatch as null. I searched for any docs about the setup but haven't found any, what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
|
I ran into this same issue with the 2024.10 Storefront API. The null return is usually because the swatch data exists in the Metaobject but hasn't been 'activated' through the Shopify Standard Taxonomy yet. Here is the fix in the Admin UI: Assign a Specific Category: At the top of your Product page, you must select a category from the Shopify Taxonomy (e.g., Apparel > Clothing > Shirts). This is the 'handshake' that tells the API to look for Category Metafields. The Bigger Picture: Smart Logic |
Beta Was this translation helpful? Give feedback.




I ran into this same issue with the 2024.10 Storefront API. The null return is usually because the swatch data exists in the Metaobject but hasn't been 'activated' through the Shopify Standard Taxonomy yet.
Here is the fix in the Admin UI:
Assign a Specific Category: At the top of your Product page, you must select a category from the Shopify Taxonomy (e.g., Apparel > Clothing > Shirts). This is the 'handshake' that tells the API to look for Category Metafields.
Connect the Option Value: Scroll to Variants and click the 'Color' option. You’ll see a small dynamic source icon (link icon). You must connect this to the Category Metafield, not just a generic metaobject.
The Swatch field: Ensur…