Conditional Add to Cart for WooCommerce icon
eCommerce & WooCommerce

Conditional Add to Cart for WooCommerce

Hide, disable, customize, or replace the WooCommerce Add to Cart button using conditional rules based on user role, cart content, country, and more.

Developer Nabil Lemsieh
99 Excellentmaintenance
  • 8 yearson WordPress.org
  • 4plugins
  • 27,600+installs in total
  • 4.8★avg. rating (260)
  • 100%of plugins updated this year
10/14 badges Profile →

Is Conditional Add to Cart for WooCommerce safe to install?

Good choice: actively maintained

  • Pass: Actively maintained Last updated 1 month ago (version 1.4.0).
  • Pass: Compatible with current WordPress Tested up to WordPress 7.1; the current release is 7.1. Needs PHP 7.2+.
  • Pass: Well rated Rated 4.7/5 by 7 users on WordPress.org.
  • Note: Small user base Active on 600+ sites.

Check every plugin on your site with the free WordPress plugin checker →

Based on WordPress.org data, checked Nov 19, 2026. Always keep plugins updated and test changes on a staging site.

Overview

Conditional Add to Cart for WooCommerce describes itself as: “Hide, disable, customize, or replace the WooCommerce Add to Cart button using conditional rules based on user role, cart content, country, and more.”

It is active on 600+ WordPress sites and rated 4.7 out of 5 by 7 users on WordPress.org. Developers can extend it through 1 actions and 18 filters, listed below.

We haven't published a hands-on review of Conditional Add to Cart for WooCommerce yet. Want one, or need help with it? Send us a request.

How to install Conditional Add to Cart for WooCommerce

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Conditional Add to Cart for WooCommerce” and pick the one by Nabil Lemsieh.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install conditional-add-to-cart --activate

Requirements: WordPress 5.0+ · PHP 7.2+ · tested up to WordPress 7.1.5

Hooks & customisation

Conditional Add to Cart for WooCommerce 1.4.0 fires 1 actions and 18 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

conditional-add-to-cart — top hooks
// Fires after init. Use this hook to register custom conditions and actions via…
do_action( 'catc_register_addons' );

// Filters the allowed HTML tags/attributes for the replace-button content.
apply_filters( 'catc_replace_allowed_html', $allowed );

// Filter in includes/Front.php
apply_filters( 'catc_not_purchasable_message', $this->getDisableMessage( $rule ), $product, $rule );

// Filter in includes/Front.php
apply_filters( 'catc_should_block_add_to_cart', $should_block, $rule, $product );

// Filter in includes/Front.php
apply_filters( 'catc_add_to_cart_error_message', $this->getDisableMessage( $rule ), $product, $rule );

// Filter in includes/Admin.php
apply_filters( 'catc_admin_tabs', $tabs );

Browse all 19 hooks with examples →

Conditional Add to Cart for WooCommerce: frequently asked questions

Is Conditional Add to Cart for WooCommerce free?

Yes. Conditional Add to Cart for WooCommerce is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is Conditional Add to Cart for WooCommerce safe to use?

Conditional Add to Cart for WooCommerce is actively maintained: the latest version was released 1 month ago. Users rate it 4.7 out of 5 from 7 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does Conditional Add to Cart for WooCommerce work with WordPress 7.1?

Yes. Conditional Add to Cart for WooCommerce is tested up to WordPress 7.1, the current release. It requires WordPress 5.0 or later and PHP 7.2 or later.

How many websites use Conditional Add to Cart for WooCommerce?

Conditional Add to Cart for WooCommerce is active on 600+ WordPress sites, according to WordPress.org. It is currently at version 1.4.0, last updated on October 7, 2026.

What are the best alternatives to Conditional Add to Cart for WooCommerce?

We didn't find a maintained plugin that does exactly the same job. Browse the top-rated eCommerce & WooCommerce plugins for related options.

Can I customise Conditional Add to Cart for WooCommerce without editing its code?

Yes. Conditional Add to Cart for WooCommerce 1.4.0 fires 1 actions and 18 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 19 hooks with examples.

Done for you

Need Conditional Add to Cart for WooCommerce to do more?

Clear starting prices, an exact quote before any work, and changes built so plugin updates never wipe them.

Custom hook snippet

from $49

A small, update-safe change built on the plugin’s own hooks.

  • Code written against the plugin’s actions and filters
  • Tested on a staging copy of your site
  • Install instructions included

Typical turnaround: 2–3 business days

Choose this

Bug or conflict fix

from $79

Errors, broken layouts or two plugins that don’t get along.

  • Find the cause on a staging copy
  • Fix without breaking updates
  • Explain what was wrong

Typical turnaround: 1–3 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need Conditional Add to Cart for WooCommerce customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Nabil Lemsieh. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 19, 2026.

More plugins by Nabil Lemsieh

All 4 →
Reviewed

Create unlimited urgency and scarcity countdown timers for WordPress and WooCommerce to boost conversions and sales instantly.

20,000+ installs Updated 3 weeks ago 56 hooks

Make all WooCommerce product images the same size without cropping. Automatic, no configuration required.

7,000+ installs Updated 4 weeks ago 140 hooks

Let the companies that buy from your WooCommerce store order as a team, with their own logins and approval from…

Updated 1 week ago 40 hooks

Alternatives in eCommerce & WooCommerce

See all →
Reviewed
WooCommerce icon

WooCommerce

4,833

Everything you need to launch an online store in days and keep it growing for years. From your first sale…

7+ million installs Updated 2 days ago 2853 hooks

Native integration with Google that allows merchants to easily display their products across Google’s network.

800,000+ installs Updated 5 days ago 123 hooks

PayPal's latest payment processing solution. Accept PayPal, Pay Later, credit/debit cards, alternative digital wallets and bank accounts.

800,000+ installs Updated 2 weeks ago 302 hooks