Can't display custom metafield images on color variants for my products

My color variants are only showing standard color swatches and not the images I’ve uploaded to the color metafield. I’ve tried trouble shooting but can’t seem to figure out why I can’t get them to display in the color variant swatch menu on my products. Please help!

1 Like

Hi @mrs_mccann

This usually happens because the theme isn’t connected to your color metafield it’s still pulling default variant colors instead of your uploaded images.

Check these first:

Theme Settings → Swatches / Variant Picker
Make sure it’s set to use custom swatches or metafields, not standard color.
Settings Custom Data Variants
Confirm your color metafield is

Type: File / Image
Assigned to Variantsnot Products
Open your theme editor Product template
Make sure the variant picker block supports image swatches (some themes require enabling this manually).

If your theme doesn’t support metafield-based swatches, you may need:

Custom Liquid code
Or a swatch app

Most of the time it’s just the theme not mapped to the metafield

Hi @mrs_mccann

You need to add the image on the product page using the product metafields.

Best regards,
Devcoder :laptop:

It looks like your theme uses the old way for swatches and not the new, metafield-based:
https://help.outofthesandbox.com/hc/en-us/articles/360024080613-Flex-Swatch-settings

Since they sell Flex from their own site, not in Shopify app store they do not have to follow the new standards.

You may try to contact their support though to confirm.

Just in case – new way of adding swatches – https://help.shopify.com/en/manual/custom-data/metafields/category-metafields/using-category-metafields (in case they do support this, you may wish to confirm that you did it properly).

Hi,

Hope this will help

  • Confirm the theme actually supports metafield swatches
  • Double check metafield definition
  • Verify the option name matches theme logic
  • Check if theme is overriding swatches with its own system
  • Clear cache and test on a fresh product