A client wanted to completely remove the area on the Cart page where “cross-sells” show. This is helpful if you have dozens of products with cross-sells and you don’t want to go and edit each single page 🙂

WooCommerce: remove cross-sells on the Cart page
WooCommerce: remove cross-sells on the Cart page WooCommerce: remove cross-sells on the Cart page

Remove Cross-Sells @ Cart Page – WooCommerce Snippet

Add the following snippet in your current theme’s function.php file. I strongly recommend to do this edits on a child theme – if you know what that is feel free to check my “I will create & install your child theme” service.


// Remove cross-sells at cart

remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );

Share:

Leave a Reply