How to Remove Related Products In WooCommerce

Do you want to hide related products on single product page in WooCommerce?

Good for You, You are on the right page of the Internet.

WooCommerce is simple to use and anyone can setup online shop in mintues.

But, Sometimes it’s not very easy for average joe to accomplish simple tasks in WooCommerce. 😫

Imagine 🤔 a scenario where you wish to remove all the clutter on your single product shop page such as related products.

Related products on Single Product page is a good way to give the customer more options to choose from or may be helpful to increase order size.( maybe not 👾)

The problem with ‘related products’ on a single product page is that it can distract the user and make them confuse can result in no sale at all.

I know it’s Sad: 😭

For example: 

If you are just selling sunglasses worth over $50 and If someone on a single product page that simply means that person is very much interested in buying that product.

Why would you want to show very similar other 4 Sunglasses and delay the process of clicking “Add to Cart” Button and put money in your pocket 💰?

Also, the majority of Customers will not buy 2 pairs of sunglasses at the same time.

On the other hand, If you are selling Dinning table than Yes, most likely customers will buy chairs to go with the table as well.

So it’s  pretty much depends on what you are selling

Remove Related Products In WooCommerce

Simply add the following code in your theme’s functions.php file it will remove the related products from the single product page.

Make sure always use child theme otherwise you will loose changes after theme update.

* Hide Related Products on WooCommerce Single Product Page
* @testedwith Woo 3.3.4

remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

Above code is an simple Woocommerce hook and it should work with every WooCommerce theme.

For Beginners:

functions.php file is located in your in the wp-content > themes > your active theme’s folder

Which you can locate via FTP or in WordPress Admin dashboard go to Appearance > Editor and found a file with name functions.php from the menu on the right side.

Except you have to dirty your hands ✋ with simple code snippet, it’s just a simple solution to remove or hide related products. 🤗

If you are having any problem ask me in comments below or shoot me an email.

For more interesting WordPress or WooCommerce tutorials consider subscribing our Monthly Newsletter 💌.

#WooCommerce #Remove_Related_Products


Show More

Related Articles