{"id":3915,"date":"2024-12-15T10:47:21","date_gmt":"2024-12-15T10:47:21","guid":{"rendered":"https:\/\/ithemelandco.com\/docs\/woorbp\/?p=3915"},"modified":"2025-11-08T12:14:14","modified_gmt":"2025-11-08T12:14:14","slug":"hide-price-add-to-cart-guest-users","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/docs\/woorbp\/hide-price-add-to-cart-guest-users\/","title":{"rendered":"How to hide the price or add-to-cart button for guest users?"},"content":{"rendered":"\n<p>It is very common for store owners to decide to hide product prices or add-to-cart buttons for guest users and prevent them from ordering products before registration. Although WooCommerce has no option for hiding product prices or add-to-cart buttons, the <a href=\"https:\/\/ithemelandco.com\/plugins\/role-based-pricing-for-woocommerce\/?utm_source=docs&amp;utm_content=hide-price-guest-user\" target=\"_blank\" rel=\"noreferrer noopener\">ROLEPRICEiT &#8211; Role Based Pricing for WooCommerce<\/a> provides you with all the necessary tools for doing this task perfectly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Hide the Add to Cart button for Guest users<\/h2>\n\n\n\n<p>If you want to hide the add to cart button for guest users, follow the below steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the <strong>iThemeland<\/strong> -&gt; <strong>Role Based Pricing<\/strong>.<\/li>\n\n\n\n<li>Go to the <strong>Hide price <\/strong>tab.<\/li>\n\n\n\n<li>Mark the <strong>Enable Hide Price &amp; Add to Cart<\/strong> and <strong>Hide for Guest users<\/strong>, respectively.&nbsp;<\/li>\n<\/ol>\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-add-to-cart-btn-for-guest-user.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"951\" height=\"411\" src=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/01-hide-add-to-cart-btn-for-guest-user.png\" alt=\"Hide add-to-cart btn for guest users in role-based pricing plugin in woocommerce\" class=\"wp-image-4045\"\/><\/a><\/figure>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Mark <strong>Hide Add to cart button<\/strong> which means guest users will not see this button in the archive or product page anymore. However, you can also show a custom text to the guest users or lead them to a new page by adjusting the following settings:\n<ul class=\"wp-block-list\">\n<li><strong>Add to cart button text<\/strong>: You can write a custom text in this field to be displayed in the archive or product page to the guest users like \u201c<strong>Register to buy\u201d<\/strong>.<\/li>\n\n\n\n<li><strong>Add to cart link:<\/strong> You can insert a URL in this field to lead the guest users to a page like the registration page to fill in the related form.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click on the <strong>Save Settings<\/strong> to prevent the add to cart button from being displayed to the guest users as shown below:<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Hide product price for guest users<\/h2>\n\n\n\n<p>To hide the product price for guest users, first, you need to follow these steps:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the iThemeland -&gt; Role Based Pricing.<\/li>\n\n\n\n<li>Go to the <strong>Hide price <\/strong>tab.<\/li>\n\n\n\n<li>Mark the <strong>Enable Hide Price &amp; Add to Cart<\/strong> and <strong>Hide for Guest users<\/strong>. Then follow the below steps:\n<ul class=\"wp-block-list\">\n<li>Mark <strong>Hide price<\/strong> field to prevent the prices displayed on the archive and product pages.<\/li>\n\n\n\n<li>Write a text in the <strong>Price Text<\/strong> box if you want to display a custom to the guest users instead of product prices. If you leave this box empty, simply the prices will be removed from the product and archive pages. Nothing will show instead of it.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You can choose one or more products\/Categories in the related fields to hide the price of those selected products\/ categories for the guest users-&nbsp;<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Read More:<\/strong> <a href=\"https:\/\/ithemelandco.com\/docs\/woorbp\/hide-prices-on-product-or-category\/?utm_source=docs&amp;utm_content=hide-price-guest-user\" data-type=\"link\" data-id=\"https:\/\/ithemelandco.com\/docs\/woorbp\/hide-prices-on-product-or-category\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"text-decoration: underline;\">How to hide the price or add-to-cart button on a specific product or category?<\/span><\/a><\/p>\n<\/blockquote>\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-hide-price-for-guest-user.jpg\"><img decoding=\"async\" width=\"996\" height=\"189\" src=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/02-hide-price-for-guest-user.jpg\" alt=\"mark hide price for guest users option\" class=\"wp-image-4046\"\/><\/a><\/figure>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Click on the <strong>Save Settings<\/strong> to apply the rule.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p>So, when guest users visit your website, the product price won\u2019t be displayed to them.<\/p>\n\n\n\n<p>If you mark both <strong>Hide prices<\/strong> and <strong>Hide add to cart button<\/strong>, the guest users won\u2019t see any of them in the archive and product pages:<\/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-result-of-hide-price-and-add-to-cart-btn-for-guest-users.png\"><img decoding=\"async\" width=\"998\" height=\"634\" src=\"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-content\/uploads\/sites\/20\/2024\/12\/03-result-of-hide-price-and-add-to-cart-btn-for-guest-users.png\" alt=\"Show result of guest user by hide price and add-to-cart btn rule\" class=\"wp-image-4047\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It is very common for store owners to decide to hide product prices or add-to-cart buttons for guest users and prevent them from ordering products before registration. Although WooCommerce has no option for hiding product prices or add-to-cart buttons, the ROLEPRICEiT &#8211; Role Based Pricing for WooCommerce provides you with all the necessary tools for [&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-3915","post","type-post","status-publish","format-standard","hentry","category-plugin-usage"],"_links":{"self":[{"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/posts\/3915","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=3915"}],"version-history":[{"count":1,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/posts\/3915\/revisions"}],"predecessor-version":[{"id":4469,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/posts\/3915\/revisions\/4469"}],"wp:attachment":[{"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/media?parent=3915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/categories?post=3915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woorbp\/wp-json\/wp\/v2\/tags?post=3915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}