🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

How to Remove Related Products on WooCommerce Pages

WooCommerce is a popular e-commerce plugin on the WordPress platform, and most foreign trade websites have this plugin installed. WooCommerce lists related products on product pages, aiming to increase user purchase rates. However, there might be situations where you don't want related products to be 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 start researching those related glasses. After checking some information, they might find other better options, and you could lose that order. Therefore, this article will explain how toHow to Remove Related Products on WooCommerce Pages

Methods 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 Snippets

Via Plugin Implementation

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 allows you to set whether related products are displayed, but it can also configure 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 outSteps to Build a Website, or directly contactNaiba Foreign Trade Website Buildingto quickly build a website.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

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.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: