Site logo

Archived topic

Woocommerce Image Settings Not Saving In Customizer

8 replies · Started by Roberto Enrique on November 5, 2021

Viewing posts 1–9 of 9

Everything in the customizer is working as expected, everything but the Woocommerce Image Dimensions Settings.

If I try to set anything (Thumbnail Size, Cropping...) the setting just don't get saved.
Any help is greatly appreciated.

Here's a quick video of what's happening

https://artomultiplo.eu/extra/3.mp4

Thanks as always.

Hi Roberto,

how strange... in your dashboard > Settings > Media - what happens if you set the media sizes ? Currently they are all 0

Yes, they work as expected in the media settings :-(

Sorry what i meant was... if you update the media settings to have values.
Then do the Customizer settings work ?

Nope, even when the media settings works, the issue persist in the customizer.

Ok @Leo, @ David. I've found what was causing the issue (after 3 days and by mistake).
It was a conflict with this plugin Variation Swatches for WooCommerce By Emran Ahmed

Which is, by the way, one of the most loved features of this client :-)

Thanks as always.

The plugin's support staff replied with this:

--

Please put the below code as a snippet (using Code Snippet Plugin) or paste the below code inside your child theme's functions.php


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

And now the issue is gone :-)

Glad to hear you found the cause of the issue - and thanks for sharing their solution.

This archived topic is closed to new replies.