[resolved] remove images from cart widget (4 posts)

  1. Andrea Fercia
    Posted 4 years ago #

    is there any option to show/hide product images from the shopping cart widget? I just want to show the cart widget without images :-)

    I got it to work extending the WooCommerce_Widget_Cart class (just to remove one line of code!) then unregistering the widget and registering a new one, but I was wondering if there is any easier method...


  2. Lodewijk van der Pol
    Posted 3 years ago #

    Hi Andrea,

    Did you find an easier method?
    I want to get rid of the product image thumbnails in the sidebar widget as well (or of possible, I would like to change the thumbnail sizes in this wdiget).
    I'm not that familiar with the coding of WooCommerce, so it would be really nice if you could help me out here.


  3. Mike Jolley
    Plugin Author

    Posted 3 years ago #

    1.6.2 adds a template for the mini-cart - you'll be able to override this and customise the HTML.

  4. jeffmcnear
    Posted 3 years ago #

    I just puzzled this out this morning!

    With WooCommerce you can copy the files in the "template" folder in the plugin into a folder you create under your theme structure named "woocommerce" - these files will then over-ride the plugin files

    take the file you find at templates/cart/mini-cart.php - copy it into the "woocommerce" folder in your theme and delete the "get_image" code found at about line 34

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic