...

Blog Content

/

How to Hide Product Prices and Add-to-Cart Buttons for Specific Roles or Guests

If you’re new to WooCommerce and want to hide product prices or the Add-to-Cart button for guests or specific user roles, this plugin makes it very easy—no coding required.

Step 1: Install and Activate the Plugin


Step 2: Open the Plugin Settings

  • Navigate to WooCommerce → Hide Price & Add to Cart
  • This is where you control all visibility rules

Step 3: Create a New Rule

  • Click Add New Rule
  • This rule will decide who can or cannot see prices and Add-to-Cart buttons

Step 4: Select User Type (Guests or Specific Roles)

You can choose:

  • Guests (Not Logged-in Users)
    👉 Best if you want users to register or log in first
  • Specific User Roles (e.g., Subscriber, Wholesale Customer, Retail Customer)

Example:

  • Hide prices for Guests
  • Show prices only to Logged-in Wholesale Users

Step 5: Choose What to Hide

You can hide:

  • Product Price
  • Add-to-Cart Button
  • Or both at the same time

Step 6: Show Custom Message or Button (Optional)

Instead of hiding everything completely, you can:

  • Show text like:
    • Login to see prices”
    • “Contact us for pricing”
  • Replace Add-to-Cart with:
    • A Contact Us button
    • A Request a Quote link

This is very useful for B2B or wholesale stores.


Step 7: Apply the Rule

  • Choose where the rule applies:
    • All products
    • Specific products
    • Categories
  • Click Save Rule

That’s it
Your prices and Add-to-Cart buttons are now hidden based on the user role or guest status.


Simple Example for New Users

👉 Goal: Hide prices and Add-to-Cart for guests
✔ Select Guest Users
✔ Hide Price + Add-to-Cart
✔ Show message: “log in to see prices”

This encourages users to register or log in before buying.


Why This Is Useful

  • Perfect plugin for B2B / wholesale stores
  • Helps collect leads instead of direct sales
  • Keeps pricing private
  • Improves control over who can purchase