Skip to content

How to Run a Trade-Only Catalog

By default only guests have prices hidden. Signing up is enough to see them. For a trade store that is too easy: anyone can create an account. The fix is to hide prices from the Customer role as well, and give approved buyers a different role.

WooCommerce gives every new account the Customer role. Approved buyers need a role that is not in your audience. Many stores add a Wholesale or Trade role with a role editor plugin and assign it by hand once a buyer is approved. Shop managers and administrators are not affected unless you add them.

In the free version, go to Configuration → General and add Customer to Hide Prices For, next to Guests (not logged in). Every protected product is now hidden from both. Click Save Changes.

In Pro, you can do the same for the whole store, or limit it to some products: edit a rule (or add one), and in Hide For choose Guests (not logged in) and Customer.

A rule hiding the sunglasses from Guests and Customer

Hide For replaces the default audience for this rule. List guests too, or guests will see the price.

Adding Customer to Hide Prices For on the General tab does it for every rule without its own audience.

A login button is useless to someone already signed in, so it does not show to them. There are two ways to give both groups a next step.

Keep the login button for guests. Leave Button Action on Login to see the price and fill in Custom URL on the Display tab. Guests get the login button. Signed-in customers get a Learn more button to your trade page instead. This works in both editions.

The sunglasses as a signed-in customer: the message and a Learn more button to the trade page

Send everyone to the trade page. On the Display tab, or on a Pro rule:

  • Button Action: Go to a custom URL.
  • Custom URL: your trade application form or contact page.
  • Button Text: “Apply for a trade account”.
  • Hidden Price Text: words that make sense signed in or not. The demo uses “Wholesale pricing for {product_name} is for approved trade accounts.”

Click Save Changes (on a rule, Save Rule).

When you approve someone, go to Users, edit the user and change their role to your trade role. The next page they load shows prices.

Log in as an ordinary customer account. The product is still hidden, with the custom URL button:

The sunglasses as a signed-in customer, still hidden

In Pro, products under other rules, which target guests only, show their prices to the same customer:

The shop as a signed-in customer

  • Your own role is in the list. Do not add Administrator to an audience, or you will stop seeing your own prices on the storefront.
  • A user with several roles is hidden from if any of their roles is in the audience.
  • Caching: a page cache must not serve a guest’s copy of a page to a signed-in user. Most caching plugins skip logged-in users already. Check yours.