WooCommerce is a popular e-commerce Plugin on the WordPress platform, installed by most foreign trade websites. WooCommerce lists related products on product pages to potentially increase user purchase rates, but there may be situations where you do not want related products displayed. For example, if a user comes to your website to buy glasses, adds them to the cart, and then sees that the related products you recommended are more attractive, they might switch to researching those related glasses. After checking information, they might find other better options, causing you to lose the order. Therefore, this article introduces
How to Remove Related Products on WooCommerce PagesMethods to Remove Related Products in WooCommerce
There are two methods to disable related WooCommerce products: you can insert some lines of code into the Theme's functions.php file, or you can install a free Plugin. Let's start with the first method.
Remove via Code
You can copy the following code snippet into your Theme's functions.php file.
/**
* 删除相关产品输出
*/
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
If you don't know how to add code to the functions file, you can use the following Plugin to help you.
Safe method to add code to the functions.php file: Code SnippetsImplement via Plugin
NS Remove Related Products for WooCommerce is a Plugin that can help you remove related products. You just need to install and activate it.

NS Remove Related Products for WooCommerce not only sets whether related products are displayed but also allows you to set the number of related products to show and how to retrieve related products, among other features.
Download LinkThe above explains how to disable related product display on WooCommerce product pages. If you don't have a website yet, you can check out
Steps to Build a Website, or directly contact
Naibabiji Foreign Trade Website Buildingto quickly build a website.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.