fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Swatches plugin interfere with woocommerce settings

Kasper Basics

Hello,

I’m writing you about Variation Swatches for WooCommerce. The plugin, all of a sudden, makes us unable to put settings for our thumbnail product pictures on our category pages on our webshop.

As soon as we disable Variation Swatches for WooCommerce, then we’re able to setup our settings in WooCommerce appearance.

Golam Kibria

Hi Kasper,

Could you please paste the below code at your theme’s functions.php or as a snippet using the Code Snippets plugin?

if ( ! function_exists( 'wvs_support' ) ) {
function wvs_support(){
remove_filter( 'pre_update_option_woocommerce_thumbnail_image_width', 'wvs_clear_transient' );
remove_filter( 'pre_update_option_woocommerce_thumbnail_cropping', 'wvs_clear_transient' );
}
add_action('admin_init', 'wvs_support');
}

BTW, we are preparing a new update of our plugin.

The problem is resolved in the new version.

Thank You