Conditional Add To Cart for WooCommerce

Plugin Banner

Conditional Add To Cart for WooCommerce

by Nabil Lemsieh

Download
Description

The “Conditional Add to Cart” plugin allows you to control the visibility and behavior, as well as customize the appearance and content of the “Add to cart” button in WooCommerce based on a set of conditions. This gives you greater control and flexibility over how the button behaves and appears in your WooCommerce store.

You can trigger actions such as disabling or enabling the button, or changing its text and appearance. You can even replace the button entirely with your own custom HTML or shortcode.

NOTE: More conditions and actions will be added in future updates, so if you have any feedback or feature requests, please feel free to share them on our forum

  1. Upload conditional-add-to-cart to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  1. Settings page - Setup conditions

    Settings page - Setup conditions

  2. Settings page - Set action to perform when conditions match.

    Settings page - Set action to perform when conditions match.

It does not work for out of stock

By zedjames on August 8, 2025

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

Does not work at out-of-stock products

By MonteCito on January 23, 2025

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

What a pleasure!!

By Hercu (Hercul56) on July 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.

Incredible support

By visimotion on May 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!

Do it the hard way, or get the plugin!

By suzyloonam on February 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. 🙂

Does the job and very flexible

By Jonathan Camp (nampara17) on November 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.

Nice work !

By Tssamt on February 21, 2020

The best way to customize the add to card button Thanks!

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

  • Add support for themes with custom product pages templates
  • Declared compatibility with WooCommerce 6.3
  • Fixed “Product” rule “Not equal to” not working properly.
  • Fixed “Cart quantity” rule.

0.2.2

  • Stability improvements

0.2.1

  • Fixed “Cart total” and “Cart subtotal” condition rules.

0.2.0

  • Added “Cart total” and “Cart subtotal” condition rules.

0.1.1

  • Fixed a compatibility issue with WooCommerce 4.0
  • Added new product condition.

0.1.0

Initial release.

Back to top