How to Hide WooCommerce Prices Until Login and Keep Products Visible

Ceramic mugs on a shelf illustrate the wholesale catalog example in this guide.

A café owner finds a handmade mug in your wholesale catalog. She wants to check the glaze, capacity and case size before opening an account. Give her those details on the public product page. Where a retail shopper would usually see a price, give her one clear next step: “Sign in to see case pricing.”

In WooCommerce, the Price and Cart Hider extension lets you set a rule for guests, choose the products it covers, and replace the price with a message. You can also hide Add to Cart. The important decision comes first: does every account qualify for pricing, or only an approved trade account?

Decide who qualifies for the price

ShopperPublic wholesale catalogExpected purchase path
GuestCan browse mugs, photos, specifications and case sizes.Sees a sign-in or trade application link.
Ordinary registered customerCan browse the same catalog.Sees prices only if your policy grants access to every account.
Approved trade customerCan browse and see the case price.Can select an available glaze and add a case to the cart.
Example access policy for a store that approves wholesale buyers.

If anyone who registers can buy, one guest rule may be enough. If you approve buyers manually, a guest rule alone leaves a gap: a newly registered customer is already signed in. Include the ordinary customer role in your restrictions and verify which role your approval process grants. Use a separate test account for each role.

Set up a guest rule for one wholesale category

1. Start with a small scope. Choose one wholesale category and note two product URLs: a mug inside the category and a retail item outside it. Keeping both URLs handy makes an overly broad rule easy to spot.

2. Create the rule. With Price and Cart Hider active, open WooCommerce → Price and Cart Rules and choose Add New Rule. Name it “Guest pricing — wholesale mugs,” enable it, select Guest under User Roles, and select the wholesale category.

3. Set the message and buying action. In Hide Rule Settings, choose to hide prices and enter the text shoppers should see. For an account-only catalog, hide the cart button as well. Use Show Custom Button if you want to send the shopper directly to an existing sign-in or application page.

4. Publish and follow the link. Save the published rule, then open the mug in a private window. Follow the button yourself. A sign-in prompt should land on a working account page. A trade application prompt should lead to a form where a first-time buyer can actually apply. WooCommerce’s Price and Cart Hider setup reference.

Worked example: one case of 12 mugs

Suppose the wholesale case costs $72 and contains 12 mugs. A guest can use the public description “320 ml stoneware mug, sold in cases of 12” to decide whether the product suits a café. The message “Sign in to see case pricing” belongs beside the glaze selector, where a buyer would look for a price.

After approval, the buyer should be able to tell that $72 buys a case. If your store treats one cart unit as one case, adding a quantity of two should produce a merchandise subtotal of $144 for 24 mugs, before shipping, tax or discounts. That calculation is a simple way to catch a listing that describes cases but sells individual pieces. The figures here are illustrative.

Test the same products in two browser sessions

Where to testSigned-out guestEligible customer
Wholesale category gridProduct card opens. No numeric price or price range appears.Normal price or range is visible.
Direct link to a wholesale mugPhotos, case size and sign-in prompt are visible.Case price and buying controls are visible.
After choosing a glazeSelecting an option keeps the restricted price hidden.Selected variation shows its price and availability.
Retail item outside the ruleNormal retail price and purchase controls are available.Retail experience works as before.
Account link and return visitThe prompt opens the intended account or application page.Reopening the original mug shows the eligible price.
Storefront acceptance checks for a mixed wholesale and retail shop.

Run the guest checks on a phone as well. If a theme places a sticky purchase button at the bottom of the screen, scroll far enough to trigger it. Also try any quick-view panel that your shop uses. These are separate places a buyer might see a price or purchase action.

Troubleshoot the first place the rule breaks

What you seeWhat to check first
The administrator still sees pricesRepeat the test in a private window. An administrator and a guest can match different rules.
Guests see pricing everywhereCheck that the rule is enabled and published, the audience includes Guest, and the selected product belongs to the targeted category.
A price appears only after picking a variationRecord the exact variation and page. Compare the product page with any quick-view or sticky purchase interface your theme provides.
A new retail account sees wholesale pricesCheck whether the rule covers only guests. Review ordinary customer and approved trade roles separately.
The old price appears after a rule changeClear the relevant site cache, reopen the same URL in a fresh session, and repeat the guest and customer checks.
Use one known product and one reproducible shopper state for each check.

For a final check, ask someone unfamiliar with the store to find the case size, apply or sign in, and tell you what two cases would cost. If they can do all three without asking what the button means or whether the price is per mug, the catalog is ready for that buying journey.

Cover photograph by Eric Prouzet on Unsplash.