Skip to content

Instantly share code, notes, and snippets.

@craigcooperxyz
Last active June 10, 2020 04:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save craigcooperxyz/f7cf758dc395252b9356 to your computer and use it in GitHub Desktop.
Save craigcooperxyz/f7cf758dc395252b9356 to your computer and use it in GitHub Desktop.
Remove cross-sells from cart in WooCommerce
<?php
/*
* Remove Cross-Sells from the shopping cart page
*
* Copy and paste this code into functions.php to
* remove cross-sells from the cart in WooCommerce.
*
* You may need to remove the opening <?php tag
* before you add it to your functions file.
*/
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display');
@danielbenjamins
Copy link

Doesn't work for me, WooCommerce 2.5.5

@lavron
Copy link

lavron commented Oct 10, 2016

Work for me, WC 2.6.4

@ihutornoy
Copy link

Working. Thanks.

@dskurth
Copy link

dskurth commented Mar 25, 2019

WORKED FOR ME

@stevetheadi
Copy link

Works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment