I have one problem with woocommerce product image. I can update woocommerce main product image on thumbnail click. This code not working for me:

$('body').on('click','.thumbnails img', function(){
    var thumb_fullsize = $(this).attr('src').replace('-180x180','');
        thumb_srcset = $(this).attr('srcset');

    $('.images > img').attr('src', thumb_fullsize);
    $('.images > img').attr('srcset', thumb_srcset);
    return false;
});

Thanks for reply

Read more here: update woocommerce main product image on thumbnail click


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: