One of my clients using Woocommerce, along with the Woocommerce Color or Image Variation Select plugin, was running into an issue where with some products, the variation images would not save. Instead, they would just show the default color or in some cases, it was not even possible to change any of the settings in the Coloured Variables tab.
The Woocommerce Color or Image Variation Select plugin is an add-on to Woocommerce that lets you add color swatches to a product variation. It is a third-party plugin, Woocommerce has their own version of this as well.
The problem seemed to start with products that had over 20-30 variations, but it sometimes happened rather sporadically and with products that had only a few Color Swatch Variations.
After some debugging, updating, and a bit of head scratching, I determined that on the problem products, the plugin’s _coloredvariables option was empty and the $_POST[‘coloredvariables’] variable was not being set, despite being part of the product’s edit