Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

WooCommerce · Guide

How to Hide Prices or Make a Catalog in WooCommerce

How to Hide Prices or Make a Catalog in WooCommerce

Short answer

WooCommerce has no built-in hide-prices setting, so use a code snippet or a catalog mode plugin. A snippet using the woocommerce_get_price_html and woocommerce_is_purchasable filters hides prices from guests or everyone, while YITH WooCommerce Catalog Mode hides prices and adds inquiry forms. Always add a request-a-quote button so visitors have a next step.

Key takeaways

  • WooCommerce has no built-in setting to hide prices.
  • Hide the price display and block buying together, or the price reappears at checkout.
  • A snippet can hide prices from guests only, or from everyone.
  • YITH Catalog Mode hides Add to Cart for free, but price hiding is a premium feature.
  • A product with no price cannot be bought and shows Read more instead.
  • Test as a logged-out visitor, since admins often see prices guests cannot.

Can you hide prices in WooCommerce?

Yes, you can hide prices in WooCommerce, but there is no built-in setting for it, so you need a code snippet or a plugin.

WooCommerce ships with no checkbox that hides prices from visitors. A guide to the options states this plainly: "WooCommerce doesn't come with a built-in option to hide prices" (WPBeginner guide) (checked November 2026).

Three routes cover most stores: a small code snippet, a catalog mode plugin, or a wholesale plugin with role-based pricing.

The right route depends on who should see prices. Hiding prices from everyone is a different job from hiding them only from guests, and both differ from hiding prices on a few products.

This guide covers each route, the code involved, and the checks that prove the prices are really hidden.

What is catalog mode in WooCommerce?

Catalog mode turns your shop into a browsable catalogue, with products visible but buying switched off.

In catalog mode, the Add to Cart button, price display, and checkout flow are switched off, so the storefront is built around browsing and enquiries instead of instant buying, as described in a guide to catalog mode without a plugin (InstaWP guide) (checked November 2026).

YITH WooCommerce Catalog Mode describes the same idea: it turns a shop into a catalogue by removing Add to Cart buttons and access to checkout pages, and by hiding product prices (YITH Catalog Mode) (checked November 2026).

Catalog mode suits stores that sell by quote, such as made-to-order goods, trade-only suppliers, and businesses that take orders by phone or email.

It does not suit a normal retail store. If your customers expect to buy online, hiding prices will cut sales, so use it only when the business model needs it.

How do you hide prices with code?

Add a snippet that filters the price display, and a second filter that stops guests or all visitors from buying.

A code route is free and needs no new plugin, but it needs care. The snippet goes in your child theme's functions.php file or in a code snippet plugin such as WPCode.

The two filters most guides use are woocommerce_get_price_html, which controls the price text shown on the page, and woocommerce_is_purchasable, which controls whether the product can be bought.

A guide to catalog mode gives this example for guests only: products are not purchasable for logged-out visitors, and the price text is replaced with “Price on request” (Helpoli guide) (checked November 2026).

add_filter( 'woocommerce_is_purchasable', function ( $purchasable, $product ) {
    return is_user_logged_in() ? $purchasable : false;
}, 10, 2 );

add_filter( 'woocommerce_get_price_html', function ( $price_html, $product ) {
    return is_user_logged_in() ? $price_html : 'Price on request';
}, 10, 2 );

To hide the price of every product for every visitor, return an empty string from the price filter instead. YITH's guide gives this one-line version for all products: add_filter('woocommerce_product_get_price', '__return_empty_string'); (YITH guide) (checked November 2026).

Hiding the price alone is not enough. If the product stays purchasable, a visitor can still add it to the cart and see the price at checkout, so always pair the price filter with the purchasable filter.

Use a child theme for the snippet, as explained in how to create a child theme in WordPress. A parent theme update wipes edits made to its files.

How do you hide prices from guests only?

Use a snippet that checks whether the visitor is logged in, and show prices only to logged-in customers.

Guest-only hiding is the most common setup. It lets registered trade customers shop as normal while visitors see a catalogue and a reason to register.

The snippet in the section above does exactly this. is_user_logged_in() returns true for a logged-in customer, so the price and the buy button stay visible to them and hidden from everyone else.

A ready-made version of this snippet sits in WPCode's free snippet library, under the name “Hide Price and Add to Cart for Non Logged in Users”, according to WPBeginner's guide (WPBeginner guide) (checked November 2026).

WPCode lets you add the snippet without editing theme files. Install WPCode, go to Code Snippets > Add Snippet, pick the library snippet, and activate it.

Test both sides after you activate it. Log out and check that prices are gone, then log in as a customer and check that prices and the Add to Cart button are back.

Guest-only hiding pairs well with wholesale pricing. If you sell to trade customers at different prices, see how to add wholesale pricing in WooCommerce for the full setup.

How do you hide prices for specific products only?

Target the product IDs in your snippet, or use a plugin rule that applies only to the products, categories, or tags you pick.

Hiding prices on a few products needs a targeted rule. A store-wide snippet would hide prices you want to keep visible.

YITH's guide shows the pattern: keep a list of product IDs in the snippet, and return an empty price only when the current product's ID is in that list (YITH guide) (checked November 2026).

$products_where_hide_price = array( 1, 2, 3, 50, 100 );

Replace those numbers with the real IDs of your products. You can find a product's ID by hovering over its title in the Products list and reading the ID in the edit link.

A catalog mode plugin does the same job without code. YITH Catalog Mode lets you hide prices for all products or only selected products, tags, or categories, using an unlimited number of rules (YITH Catalog Mode) (checked November 2026).

Pick the code route when only a handful of products are affected and the list rarely changes. Pick a plugin when the list changes often or a non-developer must manage it.

How do you hide prices with a plugin?

Install YITH WooCommerce Catalog Mode, turn on catalog mode, and set the rules for which products and visitors it applies to.

The free version of YITH WooCommerce Catalog Mode has more than 60,000 active installations and was tested with WordPress 7.0, according to its WordPress.org listing (WordPress.org plugin directory) (checked November 2026).

The free version hides Add to Cart buttons on product, shop, category, and tag pages, and disables the Cart and Checkout pages. Hiding prices is a premium feature, so the free version leaves prices visible.

The premium version adds price hiding, custom buttons and labels to replace the price, an inquiry form on product pages, and rules by product, category, user, or country.

WooCommerce's own Catalog Visibility Options extension takes a similar approach, with per-product settings for who can view the product, who can purchase it, and who can view prices (Catalog Visibility Options) (checked November 2026).

YITH's product page lists the premium price as $79.99, with one year of updates and support (YITH Catalog Mode) (checked November 2026).

  1. Go to Plugins > Add New Plugin, search for YITH WooCommerce Catalog Mode, then install and activate it.
  2. Open the plugin settings and turn on catalog mode.
  3. Choose whether it applies to the whole shop or only to selected products or categories.
  4. If you use the premium version, turn on price hiding and set the replacement label or button.
  5. Add a contact route, such as an inquiry form or a contact page link, so visitors can ask for a price.

A catalogue with no way to act is a dead end. Every page that hides a price should show the next step, such as “Request a quote” or a contact link.

What happens if a product has no price at all?

A product with no price cannot be bought, and WooCommerce shows “Read more” instead of “Add to cart” on the shop page.

This is the simplest no-code option for one or two products. Open the product, clear both the Regular price and Sale price fields in Product data, and click Update.

A guide to catalog mode explains the rule: a simple product with neither price field filled in is treated as not purchasable, and the shop page shows “Read more” instead of “Add to cart” (Helpoli guide) (checked November 2026).

The trade-off is that you lose the price itself. The product has no stored price to show later, so this route suits items you never want to sell online, not items with a price you want to keep private.

You can also use the External/Affiliate product type as a quote button. Choose that type in Product data, paste your contact page address in Product URL, type “Request a quote” in Button text, and leave the price fields empty.

That route gives visitors a clear action and keeps the product visible. It works without a plugin and without code, but it must be set product by product.

If you add many products this way, export first. The same guide advises exporting products to CSV before clearing prices in bulk, so you can restore them.

How do you check that prices are really hidden?

Check the shop as a logged-out visitor, on the shop page, category pages, and product pages, and confirm no price appears anywhere.

  1. Open a private browser window and visit the shop page without logging in.
  2. Confirm no prices show on the shop page, category pages, or search results.
  3. Open a product page and confirm the price and Add to Cart button are gone.
  4. Try the direct cart and checkout URLs to confirm they are blocked or empty.
  5. Log in as a customer and confirm prices return where they should.

Search results and widgets can leak a price that the product page hides. Check the shop search, related products, and any price filter widget, not just the product page.

Check variable products with care. A variation can carry its own price display, and a snippet that only filters the parent product may miss it.

Check the cart as well. If a hidden-price product can still be added to the cart, the price appears at checkout, so the hiding has failed.

If you sell variable products, the steps in how to add variable products in WooCommerce show how variation prices are set, which helps you find where a leak comes from.

FeatureFree versionPremium version
Hide Add to CartYesYes
Disable Cart and CheckoutYesYes
Hide pricesNoYes
Custom buttons and labelsNoYes
Inquiry formNoYes
Rules by user or countryNoYes

What mistakes should you avoid?

The most common mistake is hiding the price text while leaving the product purchasable, so the price reappears at checkout.

  • Do not hide only the price display. Pair the price filter with the purchasable filter, or a visitor can still buy and see the price in the cart.
  • Do not confuse catalog visibility with price hiding. The “Catalog visibility” box controls where a product appears in lists, not whether its price shows or it can be bought.
  • Do not edit your parent theme's functions.php file. Use a child theme or a snippet plugin, so a theme update does not wipe the code.
  • Do not hide prices with no next step. Add a “Request a quote” button, an inquiry form, or a contact link, or visitors will leave.
  • Do not use the free YITH plugin and expect hidden prices. Price hiding is a premium feature; the free version only removes Add to Cart and disables Cart and Checkout.
  • Do not clear the price fields on products you plan to sell online later. You lose the stored price and must re-enter it by hand.
  • Do not test only while logged in as admin. Admins often see prices that guests do not, so always test in a private window as a logged-out visitor.
  • Do not forget search and widgets. A price hidden on the product page can still show in search results, related products, or a price filter.

Frequently asked questions

Can I hide WooCommerce prices without a plugin?

Yes, with a code snippet in your child theme or a snippet plugin such as WPCode. Filter woocommerce_get_price_html to hide the price text and woocommerce_is_purchasable to stop buying. Always use both filters together, or the price shows again at checkout.

How do I hide prices only from visitors who are not logged in?

Use a snippet that checks is_user_logged_in and returns the price only for logged-in customers. WPCode offers a ready-made library snippet for this. Logged-in trade customers then shop as normal, while guests see Price on request and a reason to register.

Does the free YITH Catalog Mode plugin hide prices?

No. The free version hides Add to Cart buttons and disables the Cart and Checkout pages, but prices stay visible. Hiding prices, custom buttons, and the inquiry form are premium features, and the premium version costs $79.99 per year.

What is the difference between hiding prices and catalog mode?

Catalog mode turns the whole shop into a browsable catalogue with buying switched off. Hiding prices is one part of that: the price text is gone, but the product may still be purchasable unless you block buying too. Use catalog mode for a showcase store and price hiding for quote-based selling.

Can I hide the price of one product only?

Yes. In a snippet, list the product IDs you want to hide and return an empty price only for those products. A catalog mode plugin can do the same with a rule for selected products, categories, or tags, which is easier to manage when the list changes often.

Sources

  1. YITH WooCommerce Catalog Mode YITH
  2. Catalog Visibility Options WooCommerce
  3. YITH WooCommerce Catalog Mode WordPress.org
  4. How to hide prices in WooCommerce YITH

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.