plugin-icon

Conditional Add to Cart for WooCommerce

Hide, disable, or replace the WooCommerce Add to Cart button using conditional rules based on user role, cart total, country, and more.
Évaluations
4.7
Version
1.0.0
Installations actives
700
Mis à jour récemment
Apr 4, 2026
Conditional Add to Cart for WooCommerce

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

Conditional Add to Cart 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

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.

Gratuitsur les plans payants
En procédant à l’installation, vous acceptez les Conditions d’utilisation de WordPress.com ainsi que les Conditions de l’extension tierce.
Testé jusqu’à version
WordPress 6.9.4
Cette extension est disponible en téléchargement pour votre site .