Title: Conditional Add to Cart for WooCommerce
Author: Nabil Lemsieh
Published: <strong>Hwevrer 16, 2020</strong>
Last modified: Ebrel 4, 2026

---

Search plugins

![](https://ps.w.org/conditional-add-to-cart/assets/banner-772x250.jpg?rev=2245251)

![](https://ps.w.org/conditional-add-to-cart/assets/icon-256x256.jpg?rev=2245251)

# Conditional Add to Cart for WooCommerce

 By [Nabil Lemsieh](https://profiles.wordpress.org/nlemsieh/)

[Download](https://downloads.wordpress.org/plugin/conditional-add-to-cart.1.0.0.zip)

 * [Details](https://cor.wordpress.org/plugins/conditional-add-to-cart/#description)
 * [Reviews](https://cor.wordpress.org/plugins/conditional-add-to-cart/#reviews)
 *  [Installation](https://cor.wordpress.org/plugins/conditional-add-to-cart/#installation)
 * [Development](https://cor.wordpress.org/plugins/conditional-add-to-cart/#developers)

 [Support](https://wordpress.org/support/plugin/conditional-add-to-cart/)

## Description

**Conditionally hide, disable, or replace the WooCommerce Add to Cart button — no
code required.**

[Conditional Add to Cart](https://condicart.com) lets you create rules that automatically
control the “Add to Cart” button based on conditions you define. Hide the button
for guests, disable it until a minimum order is met, replace it with a quote form
for wholesale customers, or restrict purchases by country or user role.

Perfect for wholesale stores, B2B shops, membership sites, and any WooCommerce store
with special purchasing requirements.

#### Common Use Cases

**Wholesale & B2B Stores**
 – Hide Add to Cart for guests, require login to see 
pricing – Show “Request Quote” button for wholesale user roles – Different buttons
for different customer roles

**Minimum Order Requirements**
 – Disable Add to Cart until cart reaches a minimum
subtotal – Show “Minimum $50 Required” message until threshold is met – Custom messages
for minimum order rules

**Restrict Purchase by User Role**
 – Show products only to specific WordPress user
roles – “Members Only” access for logged-in users – Different Add to Cart behavior
per role

**Geographic Restrictions**
 – Hide Add to Cart for customers in specific countries–“
Not Available in Your Region” messages – Country-specific purchasing rules

**Pre-Orders & Coming Soon**
 – “Pre-Order – Ships March 15” custom buttons – “Coming
Soon – Notify Me” for unreleased products – Custom launch date messaging

#### Key Features

**Multiple Rules System**
 Create up to 2 rules in the free version, unlimited in
Pro. Each rule can have different conditions, target different products, and perform
different actions.

**Powerful Conditions**

_Product Conditions:_

 * Product Price – Target items within a price range
 * Product Stock Status – Target items with a defined stock status
 * Product on Sale (Pro) – Target items with active sale prices

_Cart Conditions:_

 * Cart Contains Product – Check if specific products are in cart
 * Cart Quantity – Total number of items in cart
 * Cart Subtotal – Cart value before tax/shipping
 * Cart Total – Final cart value including tax/shipping
 * Cart Contains Category (Pro) – Check if category products are in cart

_User Conditions:_

 * User Role – Target by WordPress user role (Customer, Wholesale, Subscriber, etc.)
 * User Login Status – Logged in or guest
 * User Country – Geographic targeting (multiple countries supported)

_Time Conditions (Pro):_

 * Time – Daily recurring time windows (business hours, flash sales)
 * Date/Time – Specific dates and times (product launches, deadlines)
 * Day of Week – Target specific days (weekdays, weekends, etc.)

**4 Powerful Actions**

 1. Disable Purchase – Disable the Add to Cart button completely with optional custom
    message
 2. Customize Button – Change button text, colors, and add a redirect URL
 3. Replace Button – Show custom HTML, shortcodes, or alternative content
 4. Request Quote (Pro) – Display a quote form with email notifications and custom 
    fields

**Flexible Product Targeting**

 * All Products – Apply rule to entire store
 * Specific Products – Select individual products from searchable dropdown
 * Product Categories – Target entire categories (includes subcategories)
 * All Except Products (Pro) – Exclude specific products from rule
 * Specific Variations (Pro) – Target individual product variations

**Smart Condition Logic**

 * AND/OR logic for complex rules
 * Multiple condition groups
 * Rule priority ordering (drag & drop)

#### Free vs Pro

**Free Version Includes:**

 * Up to 2 rules
 * 10 conditions (product price, stock status, cart product/quantity/subtotal/total,
   user role, login status, country)
 * Disable, Customize, and Replace actions
 * Product and category targeting
 * AND/OR condition logic
 * Rule enable/disable toggles
 * Drag & drop rule priority

**Pro Version Adds:**

 * Unlimited rules
 * 5 additional conditions: Product on Sale, Cart Contains Category, Time, Date/
   Time, Day of Week
 * Request Quote action with email notifications
 * Redirect URLs for buttons
 * “All Except Products” targeting
 * Product variation targeting
 * Custom “not available” messages
 * Priority email support

[Upgrade to Pro](https://condicart.com)

#### How It Works

**Step 1: Create a Rule**
 Give your rule a descriptive name like “Disable for Guests”
or “Wholesale Quote Request”.

**Step 2: Target Products (Apply to)**
 Select which products the rule affects: 
all products, specific products, or product categories.

**Step 3: Set Conditions (When)**
 Choose when the rule should apply: user role,
cart total, login status, country, and more.

**Step 4: Choose Action (Then)**
 Decide what happens to the Add to Cart button:
hide it, customize text and colors, replace with custom HTML, or show a quote form(
Pro).

**Step 5: Save & Test**
 Enable the rule and test it on your store. Toggle it off
anytime without deleting.

#### Example Rules

**Example 1: Minimum Order Amount**

 * When: Cart total less than $50
 * What: All products
 * Then: Customize button text to “Minimum $50 Required”

**Example 2: Members Only Products**

 * When: User is not logged in
 * What: Category “Premium”
 * Then: Replace button with “Login to Purchase” link

**Example 3: Country Restrictions**

 * When: User country is “Canada” or “Mexico”
 * What: Specific products
 * Then: Disable Add to Cart with message “Not available in your region”

**Example 4: Wholesale User Role**

 * When: User role is “Wholesale Customer”
 * What: All products
 * Then: Replace Add to Cart with a Request Quote form

**Theme Compatibility**
 Works with all WooCommerce-compatible themes including 
Storefront, Astra, Divi, Flatsome, OceanWP, Avada, GeneratePress, Kadence, and more.

**Page Builder Compatibility**
 Elementor, WPBakery, Beaver Builder, Gutenberg, 
Oxygen.

### Privacy Policy

This plugin does not collect, store, or share any personal data. All rules and conditions
are stored locally in your WordPress database.

The Pro version’s Request Quote feature collects form submissions (name, email, 
message) which are sent to the store admin email. This data is not stored by the
plugin or sent to external services.

## Screenshots

 * [[
 * Rules Overview – Manage all your rules in one place with enable/disable toggles
   and drag & drop ordering
 * [[
 * Conditions Builder – Choose from several free conditions with AND/OR logic for
   complex scenarios
 * [[
 * Product Targeting – Select all products, specific products, categories, and all
   except (Pro)
 * [[
 * “Disable Purchase” Action – Remove the Add to Cart form completely with optional
   custom message (Pro)
 * [[
 * “Customize Button” Action – Change button text, background color, text color,
   and add redirect URL (Pro)
 * [[
 * “Replace Button” Action – Use custom HTML, shortcodes, or any content to replace
   the button

## Installation

#### Automatic Installation

 1. Log in to your WordPress admin panel
 2. Go to Plugins > Add New
 3. Search for “Conditional Add to Cart for WooCommerce”
 4. Click “Install Now”
 5. Activate the plugin
 6. Go to WooCommerce > Conditional Add to Cart
 7. Create your first rule

#### Manual Installation

 1. Download the plugin ZIP file
 2. Log in to your WordPress admin panel
 3. Go to Plugins > Add New > Upload Plugin
 4. Choose the ZIP file and click “Install Now”
 5. Activate the plugin
 6. Go to WooCommerce > Conditional Add to Cart
 7. Create your first rule

#### Quick Start (2 minutes)

Let’s create a simple rule to hide the Add to Cart button for guests:

 1. Go to WooCommerce > Conditional Add to Cart
 2. Click “Add New Rule”
 3. Name it “Disable for Guests”
 4. Set Apply To: “All Products”
 5. Click “Add Condition Group”, select “User Login Status”, “is”, “Logged out (Guests)”
 6. Select Action: “Disable Purchase”
 7. Click “Save All Rules”

Done! Log out and visit your shop — the Add to Cart buttons are now hidden for guests.

## FAQ

**Getting Started**

### How does the plugin work?

You create rules. Each rule has three parts: which products it applies to, the conditions
that trigger it, and the action to take on the Add to Cart button. When a visitor
meets the conditions, the action fires automatically.

### How many rules can I create?

Free version: 2 rules. Pro version: unlimited. Most stores need 2–5 rules to cover
their requirements.

### Can I test a rule before making it live?

Yes. Each rule has an enable/disable toggle. Set up your rule while it’s disabled,
verify it looks right, then switch it on when ready.

**Common Use Cases**

### How do I disable the Add to Cart button for guests?

Create a rule, set the condition to “User Login Status” is “Logged out (Guest)”,
and choose the “Disable Purchase” action. The button will be disabled for all non-
logged-in visitors.

### Can I control the Add to Cart button based on user role?

Yes. Use the “User Role” condition to target any WordPress user role — Customer,
Subscriber, Wholesale, or any custom role. Combine it with any action to show different
buttons per role.

### How do I enforce a minimum order amount?

Use the “Cart Total” or “Cart Subtotal” condition with the “less than” operator,
then use the “Customize Button” action to show a message like “Minimum $50 Required”.

### Can I restrict purchases by country?

Yes. Use the “User Country” condition to target one or more countries, then disable
the button or replace it with a custom message.

**Features & Actions**

### Can I change the Add to Cart button text and color?

Yes. The “Customize Button” action lets you change the button text, background color,
and text color. Redirect URL is available in Pro.

### Can I replace the button with custom HTML or a shortcode?

Yes. The “Replace Button” action accepts any HTML, shortcode, or plain text — useful
for login links, custom CTAs, or embedded forms.

### Can I show a quote request form instead of the button?

Yes, this is a Pro feature. The quote form is fully customizable and sends email
notifications to the store admin when submitted.

### What happens when multiple rules match the same product?

The first matching rule wins (top to bottom). You can reorder rules by dragging 
and dropping them to control priority.

**Compatibility**

### Does it work with variable products?

Yes. The plugin fully supports variable products. Pro also lets you target specific
variations individually.

### Will it work with my theme?

Yes, if your theme follows WooCommerce standards. Tested with 20+ popular themes
including Storefront, Astra, Divi, Flatsome, OceanWP, Avada, and more.

### Does it slow down my store?

No. The plugin uses minimal database queries and efficient caching. Shop pages load
up to 40% faster compared to previous versions.

**Pro & Support**

### What does the Pro version add?

Unlimited rules, 5 additional conditions (Product on Sale, Cart Contains Category,
Time, Date/Time, Day of Week), Request Quote action, redirect URLs, variation targeting,
and priority email support.

### How do I upgrade to Pro?

Visit [condicart.com](https://condicart.com) to purchase a license. You’ll receive
a download link and license key to unlock Pro features.

### Where do I get support?

Free version: Post in our [WordPress.org support forum](https://wordpress.org/support/plugin/conditional-add-to-cart/).
We monitor it daily.

Pro version: Email support with 24-hour response time on business days.

## Reviews

![](https://secure.gravatar.com/avatar/1f21b43a8cc97ec44aa58f6ad805af84ef4b1f601c40cf9e93f2d94a8a4f966e?
s=60&d=retro&r=g)

### 󠀁[It does not work for out of stock](https://wordpress.org/support/topic/it-does-not-work-for-out-of-stock/)󠁿

 [zedjames](https://profiles.wordpress.org/zedjames/) Est 8, 2025 1 reply

As others have mentioned it does not work for out of stock products despite that
being explicitly stated in the description

![](https://secure.gravatar.com/avatar/34efecedd246a8d12d3835f5cb75bde5afcb5c587107256c0e982c182524976f?
s=60&d=retro&r=g)

### 󠀁[Does not work at out-of-stock products](https://wordpress.org/support/topic/does-not-work-at-out-of-stock-products/)󠁿

 [MonteCito](https://profiles.wordpress.org/montecito/) Mis-Genver 23, 2025

Description says “you can disable button if product is out of stock” but there is
nothing about this on settings. Misleading decription.

![](https://secure.gravatar.com/avatar/cb99fde5aff55005434a6ee1b531b2025f0208da3684e875a676d5f84e58bb93?
s=60&d=retro&r=g)

### 󠀁[What a pleasure!!](https://wordpress.org/support/topic/what-a-pleasure-3/)󠁿

 [Hercu](https://profiles.wordpress.org/hercul56/) Gortheren 6, 2022

Works first time. Flexible and simple! The only complaint I have is that it took
me 2 days to find this plugin! Thank you – good work.

![](https://secure.gravatar.com/avatar/e4f8f369dca1c132362c73d5d28369c859cdbd9c65971898cda35bdc304f1995?
s=60&d=retro&r=g)

### 󠀁[Incredible support](https://wordpress.org/support/topic/incredible-support-103/)󠁿

 [visimotion](https://profiles.wordpress.org/visimotion/) Me 6, 2022

The plugin was almost what we searched for. Nabil helped us to get the plugin customized
to our needs. and expanded the possibilities of the plugin even matching our used
Wordpress Theme! Thanks for the support and incredible plugin!

![](https://secure.gravatar.com/avatar/5b1ad80555a2c8fa060dc830e58d1f332c9239df585d620cc9ce898eeb0e93ea?
s=60&d=retro&r=g)

### 󠀁[Do it the hard way, or get the plugin!](https://wordpress.org/support/topic/do-it-the-hard-way-or-get-the-plugin/)󠁿

 [suzyloonam](https://profiles.wordpress.org/suzyloonam/) Hwevrer 21, 2022

I’m not fond of doing things the hard way, but I’ll do anything to avoid adding 
another plugin. So I futzed and futzed with that stupid add-to-cart button. I wanted
it NOT to show on all but one of 25 products. That’s a couple hours of heartache
I never want to relive. Just get this plugin. Nobody has to know. 🙂

![](https://secure.gravatar.com/avatar/e696e564dcd79a3ea9bc12429dc21cce13e810f40b60a73d8cc15a8c5b929fe6?
s=60&d=retro&r=g)

### 󠀁[Does the job and very flexible](https://wordpress.org/support/topic/does-the-job-and-very-flexible/)󠁿

 [Jonathan Camp](https://profiles.wordpress.org/nampara17/) Du 26, 2021

Looked for a plugin that would allow products to only be available to buy IF the
user was in a certain “role” AND they were “logged in”. The conditional flexibility
of the this plugin allows for this and lots of other scenarios. Great plugin – works
well and would recommend it.

 [ Read all 7 reviews ](https://wordpress.org/support/plugin/conditional-add-to-cart/reviews/)

## Contributors & Developers

“Conditional Add to Cart for WooCommerce” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Nabil Lemsieh ](https://profiles.wordpress.org/nlemsieh/)

[Translate “Conditional Add to Cart for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/conditional-add-to-cart)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/conditional-add-to-cart/),
check out the [SVN repository](https://plugins.svn.wordpress.org/conditional-add-to-cart/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/conditional-add-to-cart/)
by [RSS](https://plugins.trac.wordpress.org/log/conditional-add-to-cart/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * New: Multiple country selection with searchable dropdown
 * New: Button text color customization
 * Improved: Complete UI redesign
 * Improved: Theme compatibility
 * Fixed: Storefront sticky bar

#### 0.2.5

 * Declare compatibility with High-Performance Order Storage (HPOS)
 * Declare compatibility with WooCommerce v8.7 and WP v6.5

#### 0.2.4

 * Add global theme support

#### 0.2.3

 * Improved: WooCommerce 6.3 compatibility
 * Fixed: “Product” condition “Not equal to” operator
 * Fixed: “Cart quantity” condition

#### 0.2.2

 * Improved: Stability and performance
 * Fixed: Minor bugs

#### 0.2.1

 * Fixed: “Cart total” condition
 * Fixed: “Cart subtotal” condition

#### 0.2.0

 * New: “Cart total” condition
 * New: “Cart subtotal” condition
 * Improved: Condition evaluation

#### 0.1.1

 * Fixed: WooCommerce 4.0 compatibility
 * New: Product condition

#### 0.1.0

 * Initial release
 * Basic condition system
 * Disable and customize actions

## Meta

 *  Version **1.0.0**
 *  Last updated **2 weeks ago**
 *  Active installations **600+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/conditional-add-to-cart/)
 * Tags
 * [add to cart](https://cor.wordpress.org/plugins/tags/add-to-cart/)[b2b](https://cor.wordpress.org/plugins/tags/b2b/)
   [conditional logic](https://cor.wordpress.org/plugins/tags/conditional-logic/)
   [woocommerce](https://cor.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://cor.wordpress.org/plugins/conditional-add-to-cart/advanced/)

## Ratings

 4.7 out of 5 stars.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/conditional-add-to-cart/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/conditional-add-to-cart/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/conditional-add-to-cart/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/conditional-add-to-cart/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/conditional-add-to-cart/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/conditional-add-to-cart/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/conditional-add-to-cart/reviews/)

## Contributors

 *   [ Nabil Lemsieh ](https://profiles.wordpress.org/nlemsieh/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/conditional-add-to-cart/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://paypal.me/nlemsieh)