Conditional Add to Cart for WooCommerce source code

By Nabil Lemsieh, on WordPress.org since 2020. 600+ active installs.

Browse code Download zip

Conditionally hide, disable, customize, or replace the WooCommerce Add to Cart button — no code required. Below is its source code for every one of its 13 releases, what changed in the latest one, and how often it ships.

What changed in 1.4.0

Released Nov 25, 2026, 4 months after 1.3.0
  • Improved: “Replace Button” action now uses a rich content editor (WYSIWYG) with formatting toolbar instead of a plain HTML textarea
  • Various tweaks

10 files changed since 1.3.0: 10 modified, 0 added, 0 removed.

Compare 1.3.0 with 1.4.0

Release history

13 releases since April 2020
  1. 1.4.0 Nov 25, 2026 Improved: “Replace Button” action now uses a rich content editor (WYSIWYG) with formatting toolbar instead of a plain HTML textarea
  2. 1.3.0 Jul 9, 2026 New: Product Tag condition — target products by WooCommerce product tags
  3. 1.2.1 May 25, 2026 Various admin UI fixes
  4. 1.2.0 May 25, 2026
  5. 1.0.0 Apr 4, 2026 New: Multiple country selection with searchable dropdown
Full Conditional Add to Cart for WooCommerce changelog with diffs

Source of 1.4.0

56 files
Browse all Conditional Add to Cart for WooCommerce 1.4.0 files Browse trunk