Product image in cart is too big - by Royalty

This topic has 9 replies, 3 voices, and was last updated 4 years, 7 months ago ago by Rose Tyler

  • Avatar: Royalty
    Royalty
    Participant
    August 22, 2019 at 22:14

    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?

    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 23, 2019 at 09:19

    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

    Avatar: Royalty
    Royalty
    Participant
    August 23, 2019 at 10:19

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 23, 2019 at 11:49

    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

    Avatar: Royalty
    Royalty
    Participant
    August 23, 2019 at 12:15

    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.

    Avatar: Royalty
    Royalty
    Participant
    August 23, 2019 at 12:24

    Ok, got it. Changed the code in cart.php twice from to:
    $_product->get_image(),
    to
    $_product->get_image('woocommerce_gallery_thumbnail'),

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 23, 2019 at 13:26

    Hello,

    You can use this default size but copy changed file to child theme to avoid losing customization after the next theme update.

    Regards

    Avatar: Royalty
    Royalty
    Participant
    August 23, 2019 at 18:04

    Yes, I did so. Thank you.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 25, 2019 at 07:49

    Hello,

    You’re welcome!
    This topic will be closed. Please kindly open up new tickets for additional questions.

    Regards

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘Product image in cart is too big’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.