🚀 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, 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 introducesHow 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

Implement 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 outSteps to Build a Website, or directly contactNaibabiji Foreign Trade Website Buildingto quickly build a website.

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

「Naibabiji WordPress Website Building Coaching」 — From selecting a domain and purchasing hosting to installing themes and publishing posts, I「ll guide you through every step, helping you avoid detours and reach your goals directly.

👉 Learn about 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 to Follow