Setting Up WooCommerce Hide Price and Add to Cart

Hiding Price and Add to Cart Button

Viewing & Tracking Rules in a Grid

Create multiple rules to hide prices and add to cart button for the guests, registered customers, and specific user roles. 

Title: Add a custom rule title

Rule Type: Specify the rule type

Date Published: The date on which the rule was created and published

Additional functions that can be performed are:

  • Perform bulk actions on multiple rules at once
  • Search for an existing rule in the search bar
  • Filter the rules by the month and year

Creating a New Rule to Hide Price & Add to Cart

Add New Rule: Choose to hide product price, add to cart button, or both. 

Title: Add a custom rule title for future reference

Rule Settings:

Rule Type: Select from the two options in the dropdown

  • Rule for Guest Users
  • Rule for Registered Users

Mentioned below are the rule settings for Guest Users:

Rule Priority: Specify rule priority, with 1 being the highest 

Note:  If more than one rule is applied to the same item, a rule with high priority will be applied.

Hide for Countries: Add country(s) to apply the rule

Apply on All Products: Checkmark to apply the rule on all products

If left unchecked:

  • Rule for Selected Products: Choose products to apply the rule for selected products only
  • Rule for Selected Categories: Choose from a range of categories mentioned here to apply rule for that specific category(s)

Hide Price: Choose from a “Yes” or “No” option to enable/disable hide price

If you choose “Yes” as an option: 

  • Hide Price Text: Add a custom text to display when the price is hidden (for example, “Price is hidden”)

Hide Add to Cart Button: Choose from a “Yes” or “No” option to enable/disable hide add to cart button

If you choose “Yes” as an option: 

  • Custom Button Label: Add a custom button label to display when the add to cart button is hidden (for example, “Request a Quote”)
  • Custom Button Link: Link custom button with a URL (for example, “http://www.example.com”)
  • Contact Form: Replace add to cart button with a contact form

Mentioned below are the rule settings for Registered Users:

Rule Priority: Specify rule priority, with 1 being the highest 

Note:  If more than one rule is applied to the same item, a rule with high priority will be applied.

Rule for User Roles: Select the user roles for which you want to hide the price and add to cart button:

  • Administrator
  • Editor
  • Author
  • Contributor
  • Subscriber 
  • Customer
  • Shop manager
  • Wholesale
  • B2B
  • Retailer 

Hide for Countries: Select countries for which you want to hide the price and add to cart button

Apply on All Products: Enable to apply this rule on all products (to apply the rule on selected products, leave it unchecked)

  • Rule for Selected Products: Specify products you want to apply the rule
  • Rule for Selected Categories: Specify categories you want to apply the rule

Hide Price: Choose from a “Yes” or “No” option to enable/disable hide price

If you choose “Yes” as an option: 

  • Hide Price Text: Add a custom text to display when the price is hidden (for example, “Price is hidden”)

Hide Add to Cart Button: Choose from a “Yes” or “No” option to enable/disable hide add to cart button

If you choose “Yes” as an option: 

  • Custom Button Label: Add a custom button label to display when the add to cart button is hidden (for example, “Request a Quote”)
  • Custom Button Link: Link custom button with a URL (for example, “http://www.example.com”)
  • Contact Form: Replace add to cart button with a contact form