WooCommerce

How to remove cross-sells / up-sells products along with main product from cart

Step 1: Finding the right action hook fired by WooCommerce To set up the up-sells and cross-sells products in WooCommerce, you can follow the instruction here.  First thing, we need to find the action hook fired by WooCommerce when removing the product from cart.WooCommerce provides “woocommerce_cart_item_removed” action hook with two arguments; $cart_item_key and $cart_object. Important …