fbpx
Want To Add Extra Images Per Product Variation? Download This Free Plugin

Fresh and updated product import doesn’t apply colour attributes for swatches (they remain as text on the front end)

Paul Mackie

I’ve just updated our WooCommerce site, and tried a fresh import for a product with colour variations. The swatches fail to display properly on the front end, and instead the colours display as text boxes only:

swatch problem1.jpg


In the product back-end, the attribute details look like this:

swatch problem2.jpg


I know that the plugin is set up correctly, because I have a different, old product that still displays correctly. Here is an example showing correctly, from the same site:

swatch problem3.jpg


Note that back-end display for this item is different to the first in a subtle way: See below:

swatch problem4.jpg

Note that for the correctly-displayed product, the back-end attributes set-up shows the attribute name (Colour) as a fixed value, and the individual colours are displayed as little grey boxes that can be switched off.  For the product that isn’t displaying colour swatches, the items are text only separated by a pipe character “|”.

So, the plugin seems to be working ok on the site. But I don’t understand why the first product isn’t using the colour swatches properly. Maybe there is some issue with the product import process?
Have you seen this problem before, and do you know how I can fix it?

 

Thanks,

Paul M.

 

Hakik Zaman

Hi Paul,

Thanks for reaching out to us.

Unfortunately, we have no connection with the import/export.

From your first screenshot, I can see your imported attributes are inserted as custom attributes, but the second screenshot indicates that the attributes are global.

So, at the time of importing data, you have to recheck the global attributes.

Also, before importing you have to install and activate the Variations Swatches plugin.

I hope this information will help.

Thank You

Paul Mackie

Thanks for the reply, Hakim,

Of course the Variations Swatches plugin was installed and activated, but I can see now your point about the imported Colour attribute needing to be global.

I retested the import and set the relevant global Colour attribute to =1, and this seems to have fixed the issue.

 

Thanks for helping!