If you’ve enabled cross-sells in WooCommerce on a product by product basis but would like to remove them from the cart in one motion, add the following script to your functions.php file or a custom functions plugin:
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
You can also move the cross sells around the cart page. We shuffled the cart and checkout pretty significantly here on Cinch, so the default location of the cross-sells was out of whack. You can move it with this snippet:
add_action('woocommerce_after_cart_table', 'woocommerce_cross_sell_display');
So now if you go and add a sticker to your cart, you should see the cross-sells under the product list :)
2 Comments
Thank you so much!
exactly what I’m looking for. My website have many cross sell products at the cart page and it pushes the checkout button to the bottom of the page. My customers don’t know how to checkout.
Comments are closed.