Skip to content

Instantly share code, notes, and snippets.

@flabernardez
Forked from craigcooperxyz/gist:f7cf758dc395252b9356
Last active May 22, 2018 10:33
Show Gist options
  • Save flabernardez/774a616bbb527d97135541a414fded2f to your computer and use it in GitHub Desktop.
Save flabernardez/774a616bbb527d97135541a414fded2f to your computer and use it in GitHub Desktop.
#woocommerce Eliminar cross-sells del carrito
<?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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment