{"id":3899,"date":"2024-12-15T10:47:21","date_gmt":"2024-12-15T10:47:21","guid":{"rendered":"https:\/\/ithemelandco.com\/docs\/woorbp\/?p=3899"},"modified":"2025-11-08T12:12:14","modified_gmt":"2025-11-08T12:12:14","slug":"hide-prices-for-user-roles","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/docs\/woorbp\/hide-prices-for-user-roles\/","title":{"rendered":"How to hide product prices for specific user roles?"},"content":{"rendered":"\n<p>Hiding product prices for specific user roles is a useful solution when you don\u2019t want to display the price of products to some visitors of your online store. It is important when the prices are not fixed and change frequently or when you want to offer special prices to some users or change the prices based on their requests to customize their orders.<\/p>\n\n\n\n<p>For any reason, you may need to hide the price for a specific user role, The <a href=\"https:\/\/ithemelandco.com\/plugins\/role-based-pricing-for-woocommerce\/?utm_source=docs&amp;utm_content=hide-price-for-specific-role\" target=\"_blank\" rel=\"noreferrer noopener\">ROLEPRICEiT &#8211; Role Based Pricing for WooCommerce<\/a> is ready to help. Using this powerful plugin, not only you can hide the product prices but also it is possible to replace the product price with a custom message on the product page, and shop page.<\/p>\n\n\n\n<p>To show you how to do this task in this plugin, let\u2019s have an example and review the steps needed to hide the prices of all products from the <strong>Editor<\/strong> and <strong>Author <\/strong>roles.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/01-hide-product-price-for-specific-user-roles.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"922\" height=\"552\" src=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/01-hide-product-price-for-specific-user-roles.png\" alt=\"Hide product price and add-to-cart for specific user roles in woo role-based pricing plugin\" class=\"wp-image-4028\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to the <strong>iThemeland -&gt; Role Based Pricing<\/strong>.<\/li>\n\n\n\n<li>Go to the <strong>Hide Price<\/strong> tab and mark <strong>Enable Hide Price &amp; Add to Cart.<\/strong><\/li>\n\n\n\n<li>Mark <strong>Hide for registered users<\/strong> to hide the price of selected products.<\/li>\n\n\n\n<li>Open the drop-down list of <strong>Select User Roles<\/strong> and choose <strong>Editor<\/strong> and <strong>Author<\/strong> roles from the list.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/02-select-users-roles-to-set-hide-price.png\"><img decoding=\"async\" width=\"917\" height=\"446\" src=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/02-select-users-roles-to-set-hide-price.png\" alt=\"Woo role-based pricing plugin select user roles to hide price\" class=\"wp-image-4032\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Marke <strong>Hide price <\/strong>field. This step is optional. Mark this item only if you want to hide the prices in the <strong>Archive<\/strong> and <strong>Product page<\/strong>.&nbsp;<\/li>\n\n\n\n<li>You can also fill in the <strong>Price Text<\/strong> field and write a custom text to replace it with the product price on the <strong>Archive<\/strong> and <strong>Product page<\/strong>. We write \u201cContact Us\u201d in this example.<\/li>\n\n\n\n<li>If you select one or more products or categories in the <strong>Select Products<\/strong> or <strong>Select Categories<\/strong> fields, then the rule will be applied to those selected products or categories. However, if you ignore these fields, the rule will be applied to all products of your store.<\/li>\n\n\n\n<li>Click on the <strong>Save Settings<\/strong> to hide the prices.<\/li>\n<\/ul>\n\n\n\n<p>So, when users log in as <strong>Editor<\/strong> or <strong>Author<\/strong>, they will see the custom message for the selected products as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/03-show-result-of-hiding-price-rule.png\"><img decoding=\"async\" width=\"976\" height=\"512\" src=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/03-show-result-of-hiding-price-rule.png\" alt=\"Result of hiding price for specific user role\" class=\"wp-image-4030\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Hiding product prices for specific user roles is a useful solution when you don\u2019t want to display the price of products to some visitors of your online store. It is important when the prices are not fixed and change frequently or when you want to offer special prices to some users or change the prices [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3899","post","type-post","status-publish","format-standard","hentry","category-plugin-usage"],"_links":{"self":[{"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/posts\/3899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/comments?post=3899"}],"version-history":[{"count":2,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/posts\/3899\/revisions"}],"predecessor-version":[{"id":4465,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/posts\/3899\/revisions\/4465"}],"wp:attachment":[{"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/media?parent=3899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/categories?post=3899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/tags?post=3899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}