fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Luc N

Hello,

my thumbnail images are in squared how can I make them display in rectangles?  I did not find any settings for that.

Squared is not good because it cuts off half of the picture and then the gay standing there does not have his head.

Golam Kibria

Hi Luc,

Please add the following snippet to your child theme’s functions.php file:

add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) {
return array(
'width' => 150,
'height' => 150,
'crop' => 0,
);
} );

You can adjust the height and width in the snippet.

Let me know if this helps.

Thank You

Luc N

Thanks that helped to fix the issue.

Luc N

Is there a way to import variable images via WP all import plugin?

Golam Kibria

Hi Luc,

We have support for the default WooCommerce export/import options.

Please make an export of your existing product and you will find the pattern and the field.

If you have more questions or confusion, please let us know.

Thank you

Luc N

Hey,

I found this patern woo_variation_gallery_images and this field have a:2:{i:0;i:3998;i:1;i:3999;}

I tried importing images to this field as in URL, but had no luck. Do you have any suggestions for me?

Luc N

I found the solution thanks for the help.

Golam Kibria

Hi Luc,

Sorry that I coud not reply to your query as I was away (it was our weekend).

I am glad that you did not have to wait for the solution.

If you need assistance with something else, please let us know.

Thanks a lot, have a great day