Goran Stimac
Menu

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.

Relevant services

These service pages are matched from the subject matter of this article, creating a cleaner path from educational content to implementation work.

Continue reading

Based on shared categories first, then the strongest overlap in tags.