Viewing 4 replies - 1 through 4 (of 4 total)
  • Add this fix to functions.php:

    if ( ! function_exists( 'fix_single_product_image_sizes') ) {
       function fix_single_product_image_sizes() {
         $sizes = wc_get_image_size( 'woocommerce_single' );
         if ( ! $sizes['height'] ) {
           $sizes['height'] = $sizes['width'];
         }
    
     return array( $sizes['width'], $sizes['height'] );
     }
    
       add_filter( 'woocommerce_gallery_thumbnail_size', 'fix_single_product_image_sizes' );
    }
    • This reply was modified 6 years, 1 month ago by temash.
    Thread Starter MonparaAshvin

    (@monparaashvin)

    Thanks @temash

    Thanks @temash, this solution works

    This also worked for me, running 3.5. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘variation products images issues woocommrece’ is closed to new replies.