Skip to content

General Settings

The General tab decides whether the plugin runs, who prices are hidden from, what is hidden, and how hidden prices are protected. In the free version it also decides which products are protected. Open DevDiggers Plugins → Hide Price → Configuration → General (in Pro, Hide Price For Guest).

The free version’s General tab: Plugin Settings, Where to Hide and Exclusions

The two editions share most of this tab. The differences:

Section Free Pro
Plugin Settings Yes Yes
Where to Hide Yes No: Rules pick the products
Exclusions Yes Yes
Protection Yes, with Click Counter Yes, with Analytics
Country Rules Upgrade card Yes

The Pro General tab, with Country Rules and no Where to Hide section

  • Enable/Disable: “Enable DevDiggers Hide Price for WooCommerce” (in Pro, “Enable Hide Price For Guest”). The master switch. Off on a new install until the setup wizard or you tick it. Off, every price shows to everyone and your settings stay as they are.
  • Hide Prices For: Who does not see prices. Guests (not logged in) by default. The list also holds every user role on your site. In Pro this is the default audience, and a rule with its own Hide For list uses that list instead.
  • What to Hide: Price and add to cart button (default), or Add to cart button only (keep the price). The second keeps prices public and takes orders another way, such as a login or your contact page.

What to Hide under Plugin Settings

Adding Customer to Hide Prices For hides prices from signed-in customers too, which is how a members-only or approved-trade catalog works. A signed-in visitor never gets a login button. Set a Custom URL on the Display tab, such as your trade application page, and they get a Learn more button to it. Your own administrator role is in the list as well. Leave it out, or you will not see your own prices.

This section is in the free version only. Pro replaces it with the Rules screen.

  • Hide Prices On: All products (default), or Selected products and categories.
  • Products: Shown with Selected products and categories. Hide the price of these products. Pick a variable product to cover all its variations, or one variation by name to hide only that one.
  • Categories: Shown with the same choice. Hide the price of every product in these categories.

A product is protected when it is in the Products list or in one of the Categories.

Where to Hide with Selected products and categories, Tortoise Aviator Sunglasses and the Hoodies category

Exclude Products with Framed Art Print chosen

  • Exclude Products: Products that always show their price. Empty by default.
  • Exclude Categories: Every product in these categories always shows its price. Empty by default.

Exclusions beat Hide Prices On and every Pro rule. A product’s own Always hide price setting beats exclusions, because it is checked first.

Hiding the price on the page is one thing. These four options close the other ways a price can be seen or a hidden product bought. All four are on by default.

The Protection section in the free version

  • Block Purchases: “Make protected products unpurchasable”. A hidden product cannot reach the cart: not through a direct ?add-to-cart= link, the block cart or a theme’s own button.
  • Search Results: “Remove prices from product schema markup”. Removes the price from the structured data Google reads, so the hidden price does not appear in search results.
  • Blocks and Store API: “Remove prices from WooCommerce Store API responses”. Product blocks such as All Products read prices from the Store API. With this on, a hidden product’s prices come back empty, and anyone reading /wp-json/wc/store/ directly gets nothing either.
  • Click Counter (free): “Count clicks on the replacement button”. Powers the dashboard. Only a daily total and a per-product total are stored. Nothing about the visitor is kept.
  • Analytics (Pro): “Track button clicks, logins and registrations”. Powers the Pro dashboard. It stores only the product, the kind of event, the date and the user ID.

Search Results and Blocks and Store API only act when What to Hide hides the price. With Add to cart button only, the price is public, so it stays in the schema and the Store API.

Keep Block Purchases on. With it off, the replacement button still hides the add to cart button, but a direct link puts the product in the cart, and the cart shows its price.

With Block Purchases off, a hidden product reached the cart through a link and shows $90.00

The free version’s Country Rules section with its Pro card

Country Rules in Pro with two countries chosen

  • Apply In: Where prices are hidden.
    • All countries (default).
    • Only the selected countries: Hidden for visitors in the list, shown to everyone else.
    • All countries except the selected ones: Shown to visitors in the list, hidden for everyone else.
  • Countries: The list. It appears once you pick one of the last two options. An empty list behaves like All countries.

A guest is placed by WooCommerce geolocation from their IP address. A customer is placed by their billing country, or by geolocation if they have none. This check comes before everything else, including a product’s own Always hide price setting.

If your store uses page caching, the cached page has to vary by country, or skip product pages. Otherwise the first visitor’s country decides what everyone sees. How to Hide Prices by Country (Pro) shows it on the demo.

Click Save Changes at the bottom of the tab.