How to Hide Prices in WooCommerce (Plugins + Code for 2026)
Learn why and how to hide WooCommerce prices for wholesale, B2B, or catalog stores. Compare top plugins plus free code snippets to do it yourself.
Not every WooCommerce store wants to show prices to everyone. Sounds strange? Not really. For many businesses, hiding prices is actually part of the sales strategy.
WooCommerce is built to sell products online. By default, it shows prices, displays the “Add to Cart” button, and pushes customers toward checkout. That’s great for a regular online store. But what if you run a wholesale business? Or sell custom-made products? Or simply want people to contact you before getting a price?
In those cases, showing prices can create more problems than benefits. The good news? WooCommerce makes it possible to hide prices completely.
In this guide, you’ll learn:
- Why store owners hide prices
- Different ways to hide prices in WooCommerce
- The best plugins for the job
- Simple code snippets you can use yourself
Let’s jump in.
Why Would You Hide Prices in WooCommerce?
Every business sells differently. And sometimes showing a price right away isn’t the best option.
Here are the most common reasons store owners hide prices.
Wholesale and B2B Stores
If you sell to businesses, pricing is often different for every customer.
You may offer special discounts, custom rates, or negotiated pricing.
Showing those prices publicly can:
- Reveal sensitive pricing information
- Let competitors see your rates
- Create confusion for customers with custom pricing
Instead, many wholesale stores hide prices and ask customers to register first.
This helps you:
- Protect your pricing
- Generate more registrations
- Qualify potential buyers
- Offer customer-specific pricing
Request a Quote Businesses
Some products don’t have a fixed price.
Think about:
- Manufacturing
- Construction supplies
- Industrial equipment
- Custom products
The final price often depends on quantity, customization, materials, or project requirements.
Instead of showing a price, businesses ask customers to request a quote.
This creates better conversations and higher-quality leads.
Catalog-Only Stores
Not every WooCommerce website wants online orders.
Some businesses simply want to showcase products.
In this case, customers browse products and then contact the company for more information.
Prices, carts, and checkout pages aren’t needed.
A catalog-only setup keeps everything clean and focused.
Member-Only Pricing
Some stores only want approved users to see pricing.
For example:
- Dealers
- Distributors
- Wholesale customers
- Paid members
Hiding prices behind a login helps grow registrations while keeping pricing private.
The 3 Ways to Hide Prices in WooCommerce
WooCommerce doesn’t have a built-in toggle for this, so you’ve got three real options:

For most people, plugins are the easiest option. They are simple to manage, work with most themes, and continue working after WooCommerce updates.
CSS should only be used for quick visual changes because the prices still exist in the page code. If you want a proper solution, use a plugin or custom code.
Below are the plugins we’d actually recommend, starting with our own.
Best Plugins to Hide Prices in WooCommerce
1. Hide Price & Show Custom Button for WooCommerce
- Product page: woocommerce.com/products/hide-price-button
- Documentation: woocommerce.com/document/hide-price-button
- By: WPKoders · Price: from $49/year

If you want serious, rule-based control over pricing, this is the one we’d start with. It’s built for exactly this job, total control over who sees prices and what they see instead.
With it, you can:
- Hide prices across your entire store
- Hide prices for specific products, categories, or tags
- Restrict pricing by country, user role, or even IP address
- Show prices only to logged-in users
- Swap the “Add to Cart” button for a custom button
- Display an inquiry or contact form in place of the price
Where it really shines is rule-based visibility. You can create unlimited rule sets, name them things like “Wholesale EU” or “VIP Customers” and configure each one through a clean 4-tab builder: General (hide price or remove the cart button), Include/Exclude (target specific products or categories), Custom Button (redirect to a URL or open a popup), and Limitations (restrict by country, role, or IP, plus set rule priority).
It also plays nicely with popup forms; Contact Form 7, Gravity Forms, and WPForms all work via shortcodes, so customers can send inquiries or request quotes instead of placing orders. If you need serious B2B and role-based control, this is the one to beat.
2. ELEX WooCommerce Catalog Mode

ELEX is a solid pick if you want to turn your store into a clean catalog, and a big plus is that a lot of its features are free.
It lets you:
- Remove prices throughout the store
- Disable “Add to Cart” buttons so nothing is purchasable online
- Replace standard buttons with custom action buttons
- Redirect products to external links or landing pages
Great for manufacturers, distributors, and made-to-order businesses that just want people to browse and then reach out.
3. YITH Request a Quote for WooCommerce

If your sales run on quotes, YITH Request a Quote is a natural fit. Instead of showing a price, it lets customers request one right from the product page.
Key features:
- Hide prices on the products you choose
- Let customers build a quote list (like a cart, but for requests)
- Collect detailed requirements with custom quote forms
- Manage and negotiate quotes from the backend
It’s purpose-built for quotation-driven sales, so if “request pricing” is your main call to action, this earns its place.
How to Hide Prices in WooCommerce Using Code
Don’t want another plugin? If you’re comfortable editing code, WooCommerce gives you plenty of flexibility. Just add the following snippets to your child theme’s functions.php file.
Important: Always back up your website before making code changes.
Hide prices from guest visitors
add_filter(‘woocommerce_get_price_html’, ‘hide_price_for_guests’);
function hide_price_for_guests($price) {
if (!is_user_logged_in()) {
return ‘<span class=”login-message”>
Login to view pricing
</span>’;
}
Looking for a Ready-Made Solution?
Explore our WordPress, WooCommerce, and LMS plugins built to extend functionality without custom development.
return $price;
}
This replaces the price with a “Login to view pricing” message for anyone who isn’t signed in.
Hide prices for a specific category
add_filter(‘woocommerce_get_price_html’, ‘hide_price_specific_category’, 10, 2);
function hide_price_specific_category($price, $product) {
if (
!is_user_logged_in() &&
has_term(‘wholesale’, ‘product_cat’, $product->get_id())
) {
return ‘Contact us for pricing’;
}
return $price;
}
This only hides prices for products in the “wholesale” category, and only for guests.
Replace the price with a “Request a Quote” button
add_filter(‘woocommerce_get_price_html’, ‘replace_price_with_quote’);
function replace_price_with_quote($price) {
if (!is_user_logged_in()) {
return ‘<a class=”button quote-btn”
href=”/request-quote”>
Request a Quote
</a>’;
}
return $price;
}
Instead of a price, guests see a button that sends them to your quote request page.
Remove prices across the entire store
remove_action(
‘woocommerce_single_product_summary’,
‘woocommerce_template_single_price’,
10
);
remove_action(
‘woocommerce_after_shop_loop_item_title’,
‘woocommerce_template_loop_price’,
10
);
This strips prices from both product pages and shop/listing pages everywhere.
What Does the Future Look Like?
Online pricing is becoming smarter every year.
We’re already seeing trends like:
- Dynamic pricing
- Personalized pricing
- AI-powered quotations
- Wholesale customer portals
- Customer-specific pricing rules
In the future, controlling who sees your prices won’t be a special feature. It will be a normal part of running an online business.
Which Option Should You Pick?
It comes down to your business model:
- Need advanced, role-based B2B controls? Go with Hide Price & Show Custom Button for WooCommerce.
- Building a browse-only catalog? ELEX WooCommerce Catalog Mode has you covered.
- Running on quotes? YITH Request a Quote is built for it.
- A developer who wants full control on a single site? The code snippets above will do the trick.
Custom code gives you maximum flexibility, but for most stores a plugin is easier to manage, more reliable, and friendlier to future WooCommerce updates.
Ready to Hide WooCommerce Prices the Right Way?
Hiding prices sounds simple, but setting up the right rules for wholesale customers, quote requests, member-only pricing, and catalog mode can quickly become complicated. That’s where WooNinjas can help.
Need help setting any of this up on your store? That’s literally what we do. Get in touch with the WooNinjas team and we’ll get your pricing rules dialed in.
FAQs
1. Can WooCommerce hide prices without a plugin?
Yes. You can hide prices using custom PHP code added to your child theme’s functions.php file. However, plugins are usually easier to manage and require no coding knowledge.
2. Can I show prices only to logged-in users?
Absolutely. Many WooCommerce plugins allow you to hide prices from guests and display them only to registered or approved users.
3. How do I replace the Add to Cart button with a Request Quote button?
You can use plugins like Hide Price & Show Custom Button for WooCommerce or YITH Request a Quote to replace the Add to Cart button with a custom inquiry or quote request button.
4. Is hiding prices bad for SEO?
No. Hiding prices does not directly affect SEO. Search engines focus on content quality, page experience, and relevance rather than whether a price is visible.
5. Which WooCommerce price-hiding plugin is best for B2B stores?
For advanced role-based pricing rules, country restrictions, and wholesale customer management, Hide Price & Show Custom Button for WooCommerce is one of the most powerful options available.
Need Ongoing WordPress Maintenance & Support?
We handle updates, performance monitoring, security hardening, and technical fixes so your WordPress and WooCommerce site stays stable and secure.