{"id":35814,"date":"2025-02-05T08:11:10","date_gmt":"2025-02-05T08:11:10","guid":{"rendered":"https:\/\/ithemelandco.com\/?p=35814"},"modified":"2025-10-16T10:26:47","modified_gmt":"2025-10-16T10:26:47","slug":"woo-hide-add-to-cart-btn-in-category","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/blog\/woo-hide-add-to-cart-btn-in-category\/","title":{"rendered":"WooCommerce hide add to cart button for specific category (3 ways)"},"content":{"rendered":"\n<p>WooCommerce hide add to cart button for specific category is helpful when you want to guide users through a specific process before adding an item to their cart. It is also beneficial in some online stores with a wide variety of products that some of them in specific categories must be sold in person.<\/p>\n\n\n\n<p>In this tutorial, we want to show you how to disable add to cart for certain category in WooCommerce with three methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#woo-default-hide-add-to-cart-btn-for-specific-category\" data-type=\"internal\" data-id=\"#woo-default-hide-add-to-cart-btn-for-specific-category\">The default option of WooCommerce disable add to cart for certain category<\/a><\/li>\n\n\n\n<li><a href=\"#woo-hide-add-to-cart-by-coding\" data-type=\"internal\" data-id=\"#woo-hide-add-to-cart-by-coding\">WooCommerce hide add to cart button for specific category programmatically<\/a><\/li>\n\n\n\n<li><a href=\"#woo-hide-price-plugin\" data-type=\"internal\" data-id=\"#woo-hide-price-plugin\">WooCommerce hide add to cart button for a specific category by plugin<\/a><\/li>\n<\/ul>\n\n\n\n<p>Let\u2019s review a step-by-step guide on how to use each method to better control the customer journey and create a seamless and intuitive user experience in your e-commerce store.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3 Methods for hiding Add to Cart for certain category&nbsp;in WooCommerce<\/h2>\n\n\n\n<p>WooCommerce disable add to cart for certain category could be achieved by using one of the below methods:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"woo-default-hide-add-to-cart-btn-for-specific-category\">Hide add to cart button for a specific category by WooCommerce default<\/h3>\n\n\n\n<p>WooCommerce has one option for hiding the add to cart button on out-of-stock products.<\/p>\n\n\n\n<p>When the products in a specific category are available in the store, the Add to Cart button is displayed as usual to them:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-01-usual-product-in-store.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"957\" height=\"473\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-01-usual-product-in-store.png\" alt=\"Product page without hide add to cart button\" class=\"wp-image-35817\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-01-usual-product-in-store.png 957w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-01-usual-product-in-store-500x247.png 500w\" sizes=\"(max-width: 957px) 100vw, 957px\" \/><\/a><\/figure>\n\n\n\n<p>However, when the stock is zero, WooCommerce hides the add to cart button for specific product like this:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-02-hide-add-to-cart-btn-of-out-of-stock-woo.png\"><img decoding=\"async\" width=\"967\" height=\"478\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-02-hide-add-to-cart-btn-of-out-of-stock-woo.png\" alt=\"Product page when add-to-cart button is hidden in WooCommerce\" class=\"wp-image-35818\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-02-hide-add-to-cart-btn-of-out-of-stock-woo.png 967w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-02-hide-add-to-cart-btn-of-out-of-stock-woo-500x247.png 500w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/a><\/figure>\n\n\n\n<p>To make this happen, you need to follow the below steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>WordPress Dashboard &gt; WooCommerce &gt; Settings<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-03-open-woocommerce-settings.png\"><img decoding=\"async\" width=\"133\" height=\"211\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-03-open-woocommerce-settings.png\" alt=\"Open WooCommerce settings page\" class=\"wp-image-35819\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the <strong>Settings<\/strong> page, open the <strong>Products<\/strong> tab. Then check the mark in front of <strong>Manage stock<\/strong>:<\/li>\n<\/ul>\n\n\n\n<p>Once the \u201c<strong>Manage stock<\/strong>\u201d option is enabled, you may see other settings however they are not useful for the purpose of this tutorial.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-04-enable-manage-stock-in-profile-tab.png\"><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"727\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-04-enable-manage-stock-in-profile-tab.png\" alt=\"Enabling manage stock in Inventory tab in WooCommerce settings\" class=\"wp-image-35820\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-04-enable-manage-stock-in-profile-tab.png 986w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-04-enable-manage-stock-in-profile-tab-500x369.png 500w\" sizes=\"(max-width: 986px) 100vw, 986px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Press <strong>Save settings<\/strong> to enable <strong>Manage stock<\/strong> for all products.<\/li>\n\n\n\n<li>Go to <strong>WordPress Dashboard &gt; Products<\/strong>.<\/li>\n\n\n\n<li>Open the <strong>Category filter<\/strong> dropdown list and choose one of the categories \u2013 Tiers in this example.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-05-select-category-in-products.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1256\" height=\"687\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-05-select-category-in-products.png\" alt=\"Filter products by category in WooCommerce\" class=\"wp-image-35821\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-05-select-category-in-products.png 1256w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-05-select-category-in-products-500x273.png 500w\" sizes=\"(max-width: 1256px) 100vw, 1256px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Hover over one of the products in this category and press the <strong>Edit<\/strong> option.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-06-click-on-edit-product.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1060\" height=\"423\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-06-click-on-edit-product.png\" alt=\"Click on product edit option\" class=\"wp-image-35822\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-06-click-on-edit-product.png 1060w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-06-click-on-edit-product-500x200.png 500w\" sizes=\"(max-width: 1060px) 100vw, 1060px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to the <strong>Product Data<\/strong> section.&nbsp;<\/li>\n\n\n\n<li>Mark <strong>Stock Management <\/strong>field.<\/li>\n\n\n\n<li>Set <strong>Quantity<\/strong> to <strong>0.<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-07-manage-the-stock-in-inventory.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"421\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-07-manage-the-stock-in-inventory.png\" alt=\"Manage product stock quantity in inventory section\" class=\"wp-image-35823\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-07-manage-the-stock-in-inventory.png 1022w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-07-manage-the-stock-in-inventory-500x206.png 500w\" sizes=\"(max-width: 1022px) 100vw, 1022px\" \/><\/a><\/figure>\n\n\n\n<p>You need to repeat these steps for all products in the specific category. So, all products that have 0 in their inventory will lose their add-to-cart button.&nbsp;<\/p>\n\n\n\n<p>If there are a large number of products that you need to set their stock quantity to 0, it makes sense to use the <a href=\"https:\/\/ithemelandco.com\/plugins\/woocommerce-product-table-pro\/?utm_source=blog&amp;utm_content=hide-add-to-cart-for-category\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce products bulk editing plugin<\/a> and automate the process via bulk edit action for multiple products. It can help you to bulk edit WooCommerce product fields with one click so there is no need to open each product page individually and change the stock quantity manually.<\/p>\n\n\n\n<p>Hide add to cart button manually in WooCommerce is not an ideal solution. It takes a lot of time and effort to open each product page one by one and set their stock value to 0.<\/p>\n\n\n\n<p>So, let\u2019s see how you can automate the process of the WooCommerce hide add to cart button for specific category.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"woo-hide-add-to-cart-by-coding\">WooCommerce disable add-to-cart for certain category by coding<\/h3>\n\n\n\n<p>The second method for removing Add to Cart button from certain category is using the Php code and your theme\u2019s function.php file.<\/p>\n\n\n\n<p>Changing the `functions.php` file in a WordPress website is a powerful way to add custom functionality, but it comes with risks if not done carefully.&nbsp;<\/p>\n\n\n\n<p>That\u2019s why website owners should take several precautions to ensure the process is smooth and to avoid potential issues.&nbsp;<\/p>\n\n\n\n<p>Here are the key steps to follow before making changes to the `functions.php` file:<\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;1.&nbsp; Back Up the Website&nbsp;<\/strong><\/p>\n\n\n\n<p>Any error in the `functions.php` file can cause the website to crash or malfunction.<\/p>\n\n\n\n<p>So, use a reliable backup plugin (e.g., <a href=\"https:\/\/wordpress.org\/plugins\/updraftplus\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/updraftplus\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">UpdraftPlus<\/a>, <a href=\"https:\/\/wordpress.org\/plugins\/duplicator\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/duplicator\/\" rel=\"noreferrer noopener nofollow\">Duplicator<\/a>) or manually back up the website files and database to ensure the backup is stored in a secure location, such as cloud storage or an external drive.<\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;2.&nbsp; Use a Child Theme&nbsp;<\/strong><\/p>\n\n\n\n<p>&nbsp;Directly editing the `functions.php` file in the parent theme can lead to loss of changes when the theme is updated. To prevent this from happening, you need to create and activate a <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">child theme<\/a>. Then, add custom code to the `functions.php` file in the child theme instead of the parent theme. This ensures that updates to the parent theme do not overwrite your customizations.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Learn about coding or ask an expert to do it.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>&nbsp;Adding incorrect or poorly written code can break the website or introduce security vulnerabilities.<\/p>\n\n\n\n<p>Try to research and understand the code snippet you plan to add. If you\u2019re not confident, consult a developer or ask an expert to apply the code on your website.<\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4. Use a Plugin for Custom Code<\/strong><\/p>\n\n\n\n<p>If you\u2019re not comfortable editing the `functions.php` file directly, consider using a plugin like <strong><a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" rel=\"noreferrer noopener nofollow\">Code Snippets<\/a><\/strong> to add custom PHP code. This approach avoids editing theme files and makes it easier to manage and disable code snippets.<\/p>\n\n\n\n<p>By considering these precautions, you can apply the following `functions.php` file safely and effectively:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_action( 'WooCommerce _single_product_summary', 'remove_add_cart_button' );\n\/* Remove add to cart button *\/\nfunction remove_add_cart_button() {&nbsp;\n\/\/ Categories\n$categories = array( 'uncategorized' );\n&nbsp;if ( has_term( $categories, 'product_cat', get_the_id() ) ) {\nremove_action( 'WooCommerce _single_product_summary', 'WooCommerce _template_single_add_to_cart', 30 );\n&nbsp;}\n}<\/code><\/pre>\n\n\n\n<p>Once you have applied the code, the Add to Cart button of all products that belong to the \u2018<strong>Uncategorized\u2019<\/strong> category will be removed.<\/p>\n\n\n\n<p>Feel free to add multiple categories and separate them with a comma to remove the Add to Cart button of their products as well.<\/p>\n\n\n\n<p>If using PHP code is not a useful option for your purpose and you need more flexibility for WooCommerce hide add to cart button for specific category, we recommend you to use the WooCommerce Hide Add to Cart and Price&nbsp; plugin.<\/p>\n\n\n\n<p>In the next part, we will show you how the plugin can make the process of WooCommerce disable add to cart for certain category more efficient.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"woo-hide-price-plugin\">WooCommerce hide add to cart button for a specific category by plugin<\/h3>\n\n\n\n<p>The most flexible method allowing you to hide the price and add to cart button of specific products or categories is the <a href=\"https:\/\/ithemelandco.com\/plugins\/woocommerce-hide-price-by-user-role\/?utm_source=blog&amp;utm_content=hide-add-to-cart-for-category\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/ithemelandco.com\/plugins\/woocommerce-hide-price-by-user-role\/?utm_source=blog&amp;utm_content=hide-add-to-cart-for-category\" rel=\"noreferrer noopener\">WooCommerce hide price and add to cart plugin<\/a>.<\/p>\n\n\n\n<p>It has many options for displaying a custom message instead of the Add to Cart button or even leading the customers to a specific link.<\/p>\n\n\n\n<p>If you want to hide the add to cart button for specific category in WooCommerce, follow the three simple steps below:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Install and Activate the WooCommerce Hide Price plugin<\/h3>\n\n\n\n<p>The first step is to download the <strong>Zip<\/strong> file and install it on your website.<\/p>\n\n\n\n<p>Then try to activate it by going to <strong>WordPress Dashboard &gt; iThemeland &gt; License.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-08-open-license-page.png\"><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"146\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-08-open-license-page.png\" alt=\"Open iThemeland plugins license page\" class=\"wp-image-35824\" \/><\/a><\/figure>\n\n\n\n<p>And insert the <strong>License key<\/strong> in the form.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-9-activate-woo-hide-price-plugin-license.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1152\" height=\"329\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-9-activate-woo-hide-price-plugin-license.png\" alt=\"Activating WooCommerce hide price and add to cart plugin license\" class=\"wp-image-35825\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-9-activate-woo-hide-price-plugin-license.png 1152w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-9-activate-woo-hide-price-plugin-license-500x143.png 500w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" \/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-columns alignwide are-vertically-aligned-center main-cta-cnt has-background is-layout-flex wp-container-core-columns-is-layout-4a33225c wp-block-columns-is-layout-flex\" style=\"background-color:#3d67ff;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group is-layout-constrained wp-container-core-group-is-layout-4f39da6d wp-block-group-is-layout-constrained\" style=\"padding-top:15px\">\n<p class=\"single-cta-heading has-white-color has-text-color has-link-color wp-elements-99e13b0e464428d5312bef1b0a74c463\" style=\"font-size:23px;font-style:normal;font-weight:800\">HIDEPRICEiT &#8211; Hide Price &amp; Add to Cart Button for WooCommerce<\/p>\n\n\n\n<p class=\"single-cta-desc has-white-color has-text-color has-link-color wp-elements-0a67ad690ecb50744dfc3446dbaf3568\" style=\"font-size:16px\">The easy way to hide add to cart button for specific category in WooCommerce<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background wp-element-button\" href=\"https:\/\/ithemelandco.com\/plugins\/woocommerce-hide-price-by-user-role\/?utm_source=blog&amp;utm_content=hide-add-to-cart-for-category\" style=\"border-style:none;border-width:0px;border-radius:40px;color:#ffffff;background-color:#0fba5e;padding-top:10px;padding-right:30px;padding-bottom:10px;padding-left:30px;font-style:normal;font-weight:500\" target=\"_blank\" rel=\"noreferrer noopener\">Buy Plugin<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"355\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/hidepriceit-banner.png\" alt=\"HIDEPRICEiT - Hide Price &amp; Add to Cart Button for WooCommerce plugin by ithemeland\" class=\"wp-image-48721\" style=\"width:440px;height:auto\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/hidepriceit-banner.png 532w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/hidepriceit-banner-500x335.png 500w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>Now by navigating to the address below:<\/p>\n\n\n\n<p><strong>WordPress Dashboard &gt; IThemeland &gt; Hide Price<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-10-open-hide-price-plugin.png\"><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"132\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-10-open-hide-price-plugin.png\" alt=\"Open WooCommerce Hide price plugin\" class=\"wp-image-35826\" \/><\/a><\/figure>\n\n\n\n<p>You are ready to hide the add to cart button for specific category, by following the next steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Add Rule for WooCommerce hide add to cart button to specific category&nbsp;<\/h3>\n\n\n\n<p>The process begins with adding a new rule. To make this, press the <strong>Add Rule <\/strong>button:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-11-hide-price-add-rule-btn.png\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"229\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-11-hide-price-add-rule-btn.png\" alt=\"Add new rule in WooCommerce hide add to cart plugin\" class=\"wp-image-35827\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-11-hide-price-add-rule-btn.png 895w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-11-hide-price-add-rule-btn-500x128.png 500w\" sizes=\"(max-width: 895px) 100vw, 895px\" \/><\/a><\/figure>\n\n\n\n<p>In the new form appeared you just need to fill in the following fields:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Title<\/strong>: Add a title for the new rule to make it recognizable among others.<\/li>\n\n\n\n<li><strong>Apply rule to:<\/strong> In this field, you can specify for which user roles the add to cart button should be removed. You can choose:\n<ul class=\"wp-block-list\">\n<li><strong>Specific User role:<\/strong> You can assign the rule to the user roles that you have already defined in WordPress like Contributor, Customer, Manager, etc.<\/li>\n\n\n\n<li><strong>Specific Customer:<\/strong> You can choose one or more customers (by the name that they have registered on your website before) to apply the rule.<\/li>\n\n\n\n<li><strong>Guests:<\/strong> You can apply the rule to the visitors who have not registered on your website, yet.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Select category:<\/strong> In this field, you can add one or more categories to let WooCommerce hide add to cart button for them. For example, we selected <strong>Tire<\/strong> category which means when guest users visit the products in the <strong>Tire<\/strong> category, the Add to Cart button will not displayed to them.<\/li>\n\n\n\n<li><strong>Hide Add to Cart button:<\/strong> Mark this field to disable add to cart for certain category. It is also possible to customize the button more via the two below options:<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Customize button label<\/strong>: You can add any text in this field to show it instead of Add to Cart button. For example, we want to encourage customers to register before making a purchase. So, we replace the Add to Cart button with \u201c<strong>Click to register<\/strong>\u201d.<\/li>\n\n\n\n<li><strong>Custom button link<\/strong>: You can insert any URL in this field to lead customers to a specific link when click on the Add to Cart button. For example, we insert a registration link in this field, so, when customers click on the button, they will visit the registration page.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-12-set-rule-for-hide-add-to-cart-btn-for-specific-category.png\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"789\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-12-set-rule-for-hide-add-to-cart-btn-for-specific-category.png\" alt=\"Set rule to WooCommerce hide add to cart button for specific categories\" class=\"wp-image-35828\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-12-set-rule-for-hide-add-to-cart-btn-for-specific-category.png 880w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-12-set-rule-for-hide-add-to-cart-btn-for-specific-category-500x448.png 500w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/a><\/figure>\n\n\n\n<p>Finally, you can apply the rule by pressing the <strong>Add Rule<\/strong> button.&nbsp;<\/p>\n\n\n\n<p>It means when guest users visit any product from the <strong>Tire<\/strong> category, they will see the <strong>Click to Register<\/strong> button instead of the <strong>Add to Cart<\/strong> button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-13-result-of-hide-add-to-cart-btn-rule.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1007\" height=\"484\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-13-result-of-hide-add-to-cart-btn-rule.png\" alt=\"result of hide add to cart button on tire category\" class=\"wp-image-35829\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-13-result-of-hide-add-to-cart-btn-rule.png 1007w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-13-result-of-hide-add-to-cart-btn-rule-500x240.png 500w\" sizes=\"(max-width: 1007px) 100vw, 1007px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Extra features of WooCommerce hide price plugin<\/h4>\n\n\n\n<p>The wooCommerce hide price plugin comes with many extra features to help you customize the WooCommerce hide Add to cart button for specific category rules.<\/p>\n\n\n\n<p>Let\u2019s review two of them briefly:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Feature 1: WooCommerce disable add to cart for certain category and specific role<\/h3>\n\n\n\n<p>Hiding the Add to Cart button for a specific role is an ideal solution for many online stores. They may hide the &#8220;Add to Cart&#8221; button for specific user roles to restrict purchasing capabilities, such as for wholesale accounts, guest users, or employees.<\/p>\n\n\n\n<p>One of the amazing features of the WooCommerce hide price plugin is allowing store managers to apply any rule to specific user roles, customers, or guests.<\/p>\n\n\n\n<p>Once you install the plugin, all user roles that you have defined in WordPress will be listed in the <strong>Rule for User roles<\/strong> field. So, you can easily choose any of them from the list to hide the add to cart button specifically for the selected role.<\/p>\n\n\n\n<p>For instance, if you aim to hide the Add to Cart button just for Contributors, you can easily add <strong>Contributor<\/strong> to the field and apply the rule by clicking on the <strong>Save Changes<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-14-set-hide-add-to-cart-btn-for-specific-user-roles.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1180\" height=\"1146\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-14-set-hide-add-to-cart-btn-for-specific-user-roles.png\" alt=\"Set hide add to cart rule for specific user roles\" class=\"wp-image-35834\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-14-set-hide-add-to-cart-btn-for-specific-user-roles.png 1180w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-14-set-hide-add-to-cart-btn-for-specific-user-roles-500x486.png 500w\" sizes=\"(max-width: 1180px) 100vw, 1180px\" \/><\/a><\/figure>\n\n\n\n<p>It means, that when customers, guests, or any other user role except contributors visit the products in the <strong>Tire <\/strong>category, they will see the Add to Cart button and they can proceed to checkout without registration.<\/p>\n\n\n\n<p>However, if contributors want to order any product from the <strong>Tire<\/strong> category, they will see <strong>Click to register<\/strong> button.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Feature 2: WooCommerce hide add to cart on a specific date&nbsp;<\/h3>\n\n\n\n<p>Online stores may need to hide the &#8220;Add to Cart&#8221; button on specific dates to manage demand, prevent overselling, or promote exclusive sales events.&nbsp;<\/p>\n\n\n\n<p>To apply any rule on a specific date, you can easily use a built-in calendar designed in the <strong>Date<\/strong> field to set the <strong>Start <\/strong>and<strong> End date<\/strong>.<\/p>\n\n\n\n<p>For instance, we tried to run the WooCommerce disable add to cart for certain category rules in January by setting the start date and end date to 1st and 31th Jan. 2025, respectively.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-15-set-hide-add-to-cart-btn-rule-for-specific-date.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1056\" height=\"746\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-15-set-hide-add-to-cart-btn-rule-for-specific-date.png\" alt=\"Set hide add to cart rule on specific dates\" class=\"wp-image-35831\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-15-set-hide-add-to-cart-btn-rule-for-specific-date.png 1056w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-15-set-hide-add-to-cart-btn-rule-for-specific-date-500x353.png 500w\" sizes=\"(max-width: 1056px) 100vw, 1056px\" \/><\/a><\/figure>\n\n\n\n<p>As a result, contributors will see the <strong>Click to Register<\/strong> button when they visit any product pages belonging to the <strong>Tire<\/strong> category in <strong>January<\/strong>. The rule will be disabled automatically from 1st Feb. From then, the contributors will see the Add to Cart button, again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why use WooCommerce hide add to cart button for specific category?<\/h2>\n\n\n\n<p>Hiding the &#8220;Add to Cart&#8221; button for certain products or categories can be a great strategy for online stores to encourage customer engagement before shopping or improve stock management.<\/p>\n\n\n\n<p>Here are six key reasons why this approach can be important:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;&nbsp;1.&nbsp; Encourages customer engagement&nbsp;<\/h3>\n\n\n\n<p>By hiding the &#8220;Add to Cart&#8221; button, online stores can encourage customers to engage more deeply with the brand. Removing the direct purchase option prompts customers to contact the store, or register to have access to the buying options.<\/p>\n\n\n\n<p>It is also beneficial when customers need to ask questions or require additional information before making a purchase.&nbsp;&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;&nbsp;2.&nbsp; Sell Products in person&nbsp;<\/h3>\n\n\n\n<p>If the store provides some specific products that must be purchased only in person, it is important to hide Add to Cart button of those specific categories from the Online shop.&nbsp;<\/p>\n\n\n\n<p>The products in those categories cannot be sold with a simple click but require a buying process in person.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;&nbsp;3.&nbsp; Improves Inventory Management&nbsp;<\/h3>\n\n\n\n<p>For products with limited stock or high demand, hiding the &#8220;Add to Cart&#8221; button can help manage inventory more effectively. Instead of allowing customers to add items to their cart immediately, they can contact the seller and make sure that the products in a specific category are available to buy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;&nbsp;4.&nbsp; Enhances the Shopping Experience for Complex Products&nbsp;<\/h3>\n\n\n\n<p>Some products, such as software, subscriptions, or customizable items, require additional steps before purchase. Hiding the &#8220;Add to Cart&#8221; button allows online stores to guide customers through a tailored buying journey. For instance, customers might need to select specific features, choose a subscription plan, or configure a product before proceeding to checkout. This approach ensures that customers fully understand what they are purchasing, reducing the risk of returns or dissatisfaction.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;&nbsp;5.&nbsp; Builds Brand Exclusivity and Prestige&nbsp;<\/h3>\n\n\n\n<p>Hiding the &#8220;Add to Cart&#8221; button can create a sense of exclusivity, resulting in increasing the perceived value of the product and driving demand.<\/p>\n\n\n\n<p>In addition, by requiring customers to request access or contact the store directly, the brand positions itself as selective and high-end.&nbsp;<\/p>\n\n\n\n<p>This strategy appeals to customers who value exclusivity and are willing to invest time and effort into acquiring the product.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. Restrict access of the general public to order specific category&nbsp;<\/h3>\n\n\n\n<p>This can indicate either a restriction based on user type (thus creating exclusivity) or based on geographic location, with certain products or services unavailable outside certain areas.<\/p>\n\n\n\n<p>It also allows the brand to maintain control over its image and customer base, ensuring that its products are marketed to the right audience.<\/p>\n\n\n\n<div class=\"wp-block-columns alignwide are-vertically-aligned-center main-cta-cnt has-background is-layout-flex wp-container-core-columns-is-layout-4a33225c wp-block-columns-is-layout-flex\" style=\"background-color:#3d67ff;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group is-layout-constrained wp-container-core-group-is-layout-4f39da6d wp-block-group-is-layout-constrained\" style=\"padding-top:15px\">\n<p class=\"single-cta-heading has-white-color has-text-color has-link-color wp-elements-99e13b0e464428d5312bef1b0a74c463\" style=\"font-size:23px;font-style:normal;font-weight:800\">HIDEPRICEiT &#8211; Hide Price &amp; Add to Cart Button for WooCommerce<\/p>\n\n\n\n<p class=\"single-cta-desc has-white-color has-text-color has-link-color wp-elements-0a67ad690ecb50744dfc3446dbaf3568\" style=\"font-size:16px\">The easy way to hide add to cart button for specific category in WooCommerce<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background wp-element-button\" href=\"https:\/\/ithemelandco.com\/plugins\/woocommerce-hide-price-by-user-role\/?utm_source=blog&amp;utm_content=hide-add-to-cart-for-category\" style=\"border-style:none;border-width:0px;border-radius:40px;color:#ffffff;background-color:#0fba5e;padding-top:10px;padding-right:30px;padding-bottom:10px;padding-left:30px;font-style:normal;font-weight:500\" target=\"_blank\" rel=\"noreferrer noopener\">Buy Plugin<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"355\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/hidepriceit-banner.png\" alt=\"HIDEPRICEiT - Hide Price &amp; Add to Cart Button for WooCommerce plugin by ithemeland\" class=\"wp-image-48721\" style=\"width:440px;height:auto\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/hidepriceit-banner.png 532w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/hidepriceit-banner-500x335.png 500w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Hiding the &#8220;Add to Cart&#8221; button is not about making the purchasing process more difficult; rather, it is a strategic decision that can benefit both the customer and the online store. By encouraging engagement, improving inventory management, enhancing the shopping experience, and building brand exclusivity, this approach can lead to higher customer satisfaction and increased sales.&nbsp;<\/p>\n\n\n\n<p>In this tutorial, we introduced three practical methods for WooCommerce hide add to cart button for specific category. Using default WooCommerce or custom coding to hide the &#8220;Add to Cart&#8221; button can be complex and time-consuming. WooCommerce hide price and add to cart button plugin, however, offers a user-friendly, efficient solution with built-in features and support. For most users, especially non-developers, this plugin is the best choice for seamless functionality and customization without technical hassle.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WooCommerce hide add to cart button for specific category is helpful when you want to guide users through a specific process before adding an item to their cart. It is also beneficial in some online stores with a wide variety of products that some of them in specific categories must be sold in person. In [&hellip;]<\/p>\n","protected":false},"author":137,"featured_media":35815,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,73],"tags":[],"class_list":["post-35814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-woocommerce"],"featured_image_url":"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/02\/131-hide-add-to-cart-for-specific-category-500x335.webp","excerpt_plain":"WooCommerce hide add to cart button for specific category is helpful when you want to guide users through a specific process before adding an item to their cart. It is also beneficial in some online stores with a wide variety of products that some of them in specific categories must be sold in person. In [&hellip;]","_embedded":{"wp:term":[[{"term_id":50,"name":"Tutorials","slug":"tutorials","term_group":0,"term_taxonomy_id":50,"taxonomy":"category","description":"Follow and learn the latest educational articles about WordPress plugins and WooCommerce here","parent":0,"count":256,"filter":"raw"},{"term_id":73,"name":"WooCommerce","slug":"woocommerce","term_group":0,"term_taxonomy_id":73,"taxonomy":"category","description":"Do you use WooCommerce to manage your online store? We suggest you read this category of WooCommerce articles.","parent":50,"count":205,"filter":"raw"}]]},"_links":{"self":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts\/35814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/users\/137"}],"replies":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/comments?post=35814"}],"version-history":[{"count":2,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts\/35814\/revisions"}],"predecessor-version":[{"id":48842,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts\/35814\/revisions\/48842"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/media\/35815"}],"wp:attachment":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/media?parent=35814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/categories?post=35814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/tags?post=35814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}