GoranStimac.com
How Can I Help
Stay Informed
Let's Connect

©2018 - 2021 Goran Štimac. All rights reserved.
v1.34_b2021-12-03

How To Remove Cross-Sells From the Cart Page on Woocommerce

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 every single page.

Add the following snippet in your current theme’s function.php file:

// Remove cross-sells at cart
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );

Note: I strongly recommend you to do this edit on a child theme.

Share:
Next Post

Apache Performance Tuning: MPM Directives

Previous Post

Browser Tracking Protections Won’t Stop Tracking, Warns DuckDuckGo

Let’s Talk About Your Needs

Contact Me