It is very common for WooCommerce store owners to want to hide the prices of their products from certain users. There are a few different ways that you can do this.
One way is to use the “Hide Price” plugin. This plugin allows you to hide the price of a product from anyone who is not logged in to your WooCommerce store.
To use this plugin, simply install and activate it, and then go to the “Hide Price” settings page. On this page, you will need to select the user roles that you want to hide the price from. By default, the plugin will hide the price from all users who are not logged in.
Another way to hide prices in WooCommerce is by using the “Catalog Visibility” setting. This setting is located on the product edit page, in the “Catalog” tab. To use this setting, simply select “Hide price if out of stock” or “Show price if out of stock”.
If you want to hide the price of a product completely, you can also use the “woocommerce_get_price” filter. This filter allows you to modify the price that is returned for a product. You can use this filter to return an empty string, which will effectively hide the price of the product.
Hiding prices in WooCommerce can be useful if you want to discourage people from buying your products without contacting you first. It can also be useful if you have products that are not yet ready for sale, but you want to list them on your website. There are a few different ways that you can hide prices in WooCommerce, so experiment with different methods until you find one that works best for your needs.
There are a few reasons why someone might want to not display pricing on their WooCommerce store. Maybe they have products that aren’t ready for sale yet but still want them visible on their website.
Or maybe they want to discourage people from buying without contacting them first. Whatever the reason, there are a few different ways to go about hiding pricing information in WooCommerce.
One way is through the Hide Price plugin- after installing and activating it, head over to the settings page and select which user roles you’d like to keep hidden from pricing. By default, it’ll keep anyone who isn’t logged into your store from seeing prices.
Another way is by using Catalog Visibility- this setting can be found on each product’s edit page under the ‘Catalog’ tab; select ‘Hide price if out of stock’ or ‘Show price if out of stock’.
If you want to completely get rid of pricing information for a product, one way to do so is by using the WooCommerce_get_price filter; this will allow you to modify what gets returned as a price for a product- changing it an empty string effectively hides any pricing information.
There are many reasons why someone might want to not display pricing information on their WooCommerce store- whether it’s because they have products that aren’t ready for sale yet or because they want people to contact them before buying anything. Whatever the reason may be, there are a few different ways of going about hiding pricing information in WooCommerce.