Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20955

    I would like to enlarge the images in my woocommerce site on the CART page only.

    Currently, they display at 32×32 px, and I would like to go up to 100×100. I have adjusted the dimensions in Woocommerce>Settings>Catalog to reflect this, with no result. I have also regenerated my thumbnails to the new size, also with no effect on the cart.

    When I look at cart.php, I see:

    <!– The thumbnail –>

    <td class=”product-thumbnail”>

    <?php

    $thumbnail = apply_filters( ‘woocommerce_in_cart_product_thumbnail’, $_product->get_image(), $values, $cart_item_key );

    printf(‘%s‘, esc_url( get_permalink( apply_filters(‘woocommerce_in_cart_product_id’, $values ) ) ), $thumbnail );

    ?>

    </td>

    Is this where I should be adjusting the size? If so, how do I do it? If not, where should I look to adjust the sizes for these images?

    Thanks!

    #109784

    Hi PearlsIntl,

    Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:

    table.cart img {
    width: 80px;
    }

    You can change the thumbnail size in config-woocommerce>config.php on this line:

    $avia_config['imgSize']['shop_thumbnail'] = array('width'=>80, 'height'=>80);

    Just adjust it as needed and the css width as well (regenerating after adjustment).

    Regards,

    Devin

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Cart thumbnail size in Propulsion’ is closed to new replies.