Website Building » WooCommerce » How Do I Hide Price Range in WooCommerce?

How Do I Hide Price Range in WooCommerce?

Last updated on January 15, 2023 @ 11:47 am

When you are setting up a WooCommerce store, you may want to hide the price range for certain products. This can be done by hiding the price range field in the product data section.

This article will show you how to hide the price range field in WooCommerce.

In WooCommerce, the price range field is located in the product data section. To hide this field, you need to add a piece of code to your theme’s functions.php file. The code is:

add_filter( 'woocommerce_product_price_range_html', '__return_empty_string' );

Once you have added this code, the price range field will be hidden from your products.

PRO TIP: If you are using WooCommerce to sell products on your website, you may want to hide the price range of your products from your customers. This can be done by going to the WooCommerce settings page and selecting the “Hide price range” option. However, it is important to note that hiding the price range of your products may make it more difficult for customers to find the product they are looking for, and it may also make it more difficult for you to sell your products.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.