great thanks for that, i was struggling to find an answer!
In case anyone else is looking to alter the product page gallery, i ended up using some slightly different code to be able change the thumbnail sizes & gallery image sizes too.
// change woocommerce gallery image size
add_filter( 'woocommerce_get_image_size_single', 'override_woocommerce_image_size_single' );
function override_woocommerce_image_size_single( $size ) {
// Single product image size
return array(
'width' => 1000,
'height' => 800,
'crop' => 0,
);
}
// change woocommerce thumbnail image size
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', 'override_woocommerce_image_size_gallery_thumbnail' );
function override_woocommerce_image_size_gallery_thumbnail( $size ) {
// Gallery thumbnails: proportional, max width 200px
return array(
'width' => '',
'height' => 150,
'crop' => 0,
);
}
& changed the thumbnail size in my theme options css
.flex-control-nav.flex-control-thumbs img {
height: 150px;
}