Related products though a good up-sell or cross-sell tactic, don’t always function as they are intended to. They can often confuse buyers with similar products and delay their decisions to purchase a product or in some cases lead to abandoned carts.
Whether related products work or not depends on the products you are selling. In this article we are going to show two ways to remove related products from WooCommerce for those businesses who are not benefiting from displaying the related products option.
Editing the Theme
You can remove the related products from your WooCommerce store by adding a single line of code to the functions.php file of your theme. Although, if you are not tech savvy then you should go with the second method.
To edit the functions.php file navigate to Appearance -> Theme Editor.
From the Theme Files list on the right select the functions.php option.
Add the below line of code at the bottom of the file.
/** * Remove related products */ remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
Now click on the Update File button.
Related products should now be hidden from your WooCommerce store.
Note: It is best to create a child theme and add the above code to it instead of directly adding it to the parent theme.
This method is best suited for those who are not comfortable with editing the theme files directly. We will be using the NS Remove Related Products for WooCommerce plugin for removing the related products.
- Install and activate the NS Remove Related Products for WooCommerce plugin.
- A Remove Related menu option is now added to the admin sidebar menu. Click it.
- Tick the Enabled Plugin checkbox and click on the Save Changes button.
Related products should now be hidden from your WooCommerce store. To show the related products in the future simply untick the checkbox and the related products will start showing again.