How to Remove Product Images from Your WooCommerce Cart

One of the most popular requests when it comes to editing a WooCommerce site’s appearance is to make changes to the cart template. Out of the box, a WooCommerce cart layout has some places that could use some improvement.

By default, WooCommerce will show tiny image thumbnails of every product your customers have added to their cart. This can be useful on sites that, for instance, are selling physical goods so that your buyers can get a quick visual reference for what they are about to checkout. On the other hand, if you use WooCommerce to sell digital products or something else that doesn’t require a visual reminder like this you might want to have the product images removed from the cart entirely.

Cart Product Image in WooCommerce
An example Cart Product Image in WooCommerce

You can take these product images off of your cart with some theme editing or by using our Remove WooCommerce Features plugin.

How to Disable Product Images from the WooCommerce Cart with Code

Get your text editors and FTP programs out because you’re going to need to make some changes to your site’s main theme. You should start by creating a child theme for your WooCommerce store first if you don’t have one already. You can learn more about the details of child themes at the WordPress Developer’s Handbook site.

Child themes are important because you want the code changes you are about to make last. If you just edit your main theme all of your coding will be lost the next time your theme receives, and you download and install, an update.

So once you have your child theme ready you’re are going to want to create a file called functions.php and add the following block of code to the file.

add_filter( 'woocommerce_cart_item_thumbnail', 'my_remove_cart_product_image', 10 );
function my_remove_cart_product_image() {
    return __return_false();

Save your functions.php file and make sure you have uploaded it back up to your WooCommerce site’s server using any popular FTP program you can find available on the Internet.

As soon as the file is uploaded you should see the change reflected on your store. If you don’t, or if your website has completely broken, you will need to take a look at your functions.php file and see if you made any mistakes with the code change.

If you the last few paragraphs seemed daunting you have two choices: hire a developer to handle the steps of child theme creation and adding the code to remove cart product images for you or you can purchase a copy of Remove WooCommerce Features and have this whole process done for you with a few clicks of your mouse.

How to Remove Product Images from the WooCommerce Cart Template Instantly

Our plugin, Remove WooCommerce Features, comes with a simple three click way to disable product images from your cart template. Once you have purchased and installed the plugin:

Step #1

Go to the WooCommerce section of your WordPress installation’s admin menu and click the link that says “Remove Features.”

WooCommerce Admin Menu

Step #3

Find the setting for “Cart Product Image” and click the checkbox so that it’s marked:

Remove WooCommerce Features - Cart Product Image

Step #3

Press the “Save Settings” button.

Save Settings Button

Remove WooCommerce Features will disable product images from your cart as soon as you have pressed the “Save Settings” button. This will hold true no matter how many times you update your theme or replace it with another design entirely. As long as you have our plugin installed and activated your setting for removing product images will keep.

The plugin deals with a whole host of other features as well that frequently annoy WooCommerce users. With Remove WooCommerce Features you can:

You can see the full list of WooCommerce features our plugin deals with right here on our site.