I'm looking for a function that gets me the thumbnails of gallery images, not the full image. I currently retrieve them using $product->get_gallery_attachment_ids();.
Code in question:
$attachment_ids = $product->get_gallery_attachment_ids();
$image_link = wp_get_attachment_url( $attachment_ids[0] );
echo "<img class='back-thumb' src='" . $image_link . "'></img>";