How to Remove Cross-Sell Products Block

This tutorial will show you how to remove cross-sell products block that appears on the cart page in WooCommerce themes.

You should perform the following steps in order to remove it:

  1. Open the functions.php file located under the “wp-content/themes/theme_name” folder. Remove Cross-Sell Products Block Add the following code to the very end of the file:

    https://gist.github.com/Shininglow/53067e9a9c9d220cd0751b0a8c8203be

    Note, in case you are using a child theme you should make the changes to the functions.php file located under child theme folder. Usually, child theme folder name has “-child” suffix.
  2. In case the cross-sell products block still persists, please, open the “wp-content/themes/theme_name/inc/woocommerce-hooks.php” file.   Find the following line of code:

    https://gist.github.com/Shininglow/f980808b39ba0fe8ac3b364741ab6cbe

  3. Near this line, you will see the line like the one below, which should be removed or commented out:

    https://gist.github.com/Shininglow/65f33f6005db693fc3d6981e2beed32a

    Note, in case you are using a child theme, you should copy the woocommerce-hooks.php file to the child theme folder preserving nested folders structure.
  4. Save the file, your cross-sell products block is removed. Refresh your cart page and see it in action!
Online store integration