Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    it seems to be related to variable products with several variations, try the following code(to be entered in the functions.php file inside your theme folder):

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    return 50; // set your own limit
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );

    Hello there, I have the same problem. I’m working with a plugin that allow me to show the product in different color variant. If I select an other color variant the zoom display the featured image. I tried to add your script in function.php file of my theme but still doesn’t working..
    This is the link of the website https://www.bordegoni-lab.com/monfrini/prodotto/new-sauvage-collection/

    Thenk you a lot for your attention!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changes back to primary image’ is closed to new replies.