This topic has 9 replies, 3 voices, and was last updated 5 years, 2 months ago ago by Rose Tyler
Hi,
since the latest update, the product images in the cart are too big. They do not have thumbnail size anymore, but shop catalogue size (420x420px).
Could you please tell me how to fix this?
Hello,
By default, it can’t be changed without additional customization in files.
Settings of these images you can change in Appearance > Customize > WooCommerce > Product Images > Thumbnail width.
Regards
Hm, no. What you describe is
Thumbnail width – Image size used for products in the catalog.
So if I change this from 420 to 100, all images in the shop catalogue page are just 100px. I had no problem with this until Royal version 6.
Hello,
Starting with WooCommerce 3.3.0. WooCommerce removed the third option and left only 2: Single product and Thumbnails http://prntscr.com/owiccb
So, the product on the cart page uses the smallest of these 2 sizes – thumbnail size. You can enable default WooCommerce theme Storefront and check.
Optimize images using Tinypng https://tinypng.com/ to save up to 70%.
Regards
Yes I see, but the thumbnail size isnt just for the cart, but also for product listings on shop page. So I can not set it to 100px. It must be a bug somewhere else because it worked before updating to version 6.x.
Ok, got it. Changed the code in cart.php twice from to:
$_product->get_image(),
to
$_product->get_image('woocommerce_gallery_thumbnail'),
Hello,
You can use this default size but copy changed file to child theme to avoid losing customization after the next theme update.
Regards
Yes, I did so. Thank you.
Hello,
You’re welcome!
This topic will be closed. Please kindly open up new tickets for additional questions.
Regards
The issue related to '‘Product image in cart is too big’' has been successfully resolved, and the topic is now closed for further responses