Documentation

Image Not Changing In Catalog Mode

If you’re using Flatsome catalog mode and your variable product images aren’t changing when you make a selection, then you’ll need to add this code to your child theme’s functions.php file:

/**
 * Add single variation field in catalog mode.
 */
function iconic_add_variation_field() {
	if ( ! get_theme_mod( 'catalog_mode' ) ) {
		return;
	}

	?>
	<div class="woocommerce-variation-add-to-cart variations_button">
		<input type="hidden" name="variation_id" class="variation_id" value="0" />
	</div>
	<?php
}

add_action( 'woocommerce_single_variation', 'iconic_add_variation_field', 10 );

Are you using WooThumbs for WooCommerce yet?

Start your 14-day free trial right now and get instant access to the features described in this article.

or learn more

Was this helpful?

Please let us know if this article was useful. It is the best way to ensure our documentation is as helpful as possible.

WooThumbs for WooCommerce

WooThumbs for WooCommerce

Not got the plugin yet? Get instant access right now, free for 14 days.

or learn more

Still need help?

If you haven't found what you're looking for in our documentation, please contact support.

Get Support