Remove Cross-Sells From the Cart Page
Hides the "You may be interested in..." product suggestions below the cart table on the classic cart page.
Opens WPIDE on
Code
add_action( 'woocommerce_before_cart', function () {
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
} );
Notes
Only the classic cart is affected. In the Cart block, remove the cross-sells inner block in the editor.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.