Skip to main content
Magento 2

Magento 2 – Product image not changing with swatch colour

By December 16, 2019No Comments

The main image of a configurable product changes with the swatch colour tiles in Magento 2. However, there are a few settings to check if this doesn’t work out of the box.

 

Magento 2 - product image with swatch colour

 

Update Product Preview Image

In the product attribute section in Stores >> Attributes >> Product >> Color, make sure “Update Product Preview Image” is set to “Yes.”

image changing with colour

Also check the options “Visible on Catalog Pages on Storefront” and “Used in Product Listing” for the attribute (in this case color) are set to “yes”.

I’ve found that although Magento admin option labels often indicate they only apply to catalogue pages, not having them enabled also affects the product page. Magento 1 similarly had swatch colour issues, although these often related to the naming of the colour and / or image tile.

Andrew Taylor

A senior UI designer with over 25 years of web design and web development experience working for some of the largest companies in the UK. An expert in all things Magento and WordPress.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.