How to get the first image gallery of a product in woocommerce in a loop
I want to display a product with a product image and when visitor hovers over that image, it will change to the first image from the product gallery. I am using this code to display the image gallery, but it displays all the images from product gallery. I just want the 1 image.
<?php do_action( 'woocommerce_product_thumbnails' ); ?>
Anybody know how to resolve this problem? Really appreciate any ideas.