Linux 软件免费装
Banner图

Conditional Add to Cart for WooCommerce

开发者 nlemsieh
更新时间 2026年4月4日 05:46
捐献地址: 去捐款
PHP版本: 7.2 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce add to cart conditional logic b2b product rules

下载

0.2.3 0.2.2 0.1.1 0.2.0 0.1.0 0.2.1 0.2.4 0.2.5 1.0.0

详情介绍:

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 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: Cart Conditions: User Conditions: Time Conditions (Pro): 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 Smart Condition Logic Free vs Pro Free Version Includes: Pro Version Adds: 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 Example 2: Members Only Products Example 3: Country Restrictions Example 4: Wholesale User Role 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.

安装:

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.

屏幕截图:

  • 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

升级注意事项:

1.0.0 Major update with multi-rules system. Your existing rule will be automatically migrated with a backup created for safety.

常见问题:

How does the plugin work?

Getting Started 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 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. We monitor it daily. Pro version: Email support with 24-hour response time on business days.

更新日志:

1.0.0 0.2.4 0.2.3 0.2.2 0.2.1 0.2.0 0.1.1 0.1.0