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

plugin causing conflict when saving woocmmerce tumbnails setting

TTS Tools

Goodday,

I have found a issue.

It is not possible to set and save the thumbnail width for woocommerce.

If you set it and publish the value is not saved and set to 0.

This is caused because of conflict caused by your plugin: variant swatches.

If you disable the variant swatches plugin it works like normal.

This tread form somebody else explains it also: https://wordpress.org/support/topic/woocommerce-product-images-thumbnail-cannot-save/

Image (now the 500 was saved because your plugin was disabled):

after change tumbnail size and publish values not saved when swatches plugin is enabled.jpg

 

Thanks, Tijmen

Hakik Zaman

Hi TTS,

Thanks for reaching out to us. We are sorry for your inconvenience.

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');
}

Please let me know if it resolves your issue.

Thank You