# 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.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, cart, cross-sells
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-remove-cross-sells-cart/

## Code

```php
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 use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove Cross-Sells From the Cart Page" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
