A lightweight WooCommerce plugin that encourages volume purchasing by showing a customisable cart notice when customers reach a trigger quantity, and automatically applying a discount when they hit the target — no coupons, no JavaScript, no external dependencies.
Each rule defines two thresholds:
Cart quantity ──► TRIGGER → notice shown to the customer
Cart quantity ──► TARGET → discount applied automatically
When the cart reaches the trigger, a personalised message is displayed (cart, product page, or both). When it reaches the target, the discount is silently added via WooCommerce's native fee system — no coupon required.
| # | Feature | Details |
|---|---|---|
| 01 | Configurable rules | Trigger qty, target qty, discount type (% or fixed), and scope (full cart or matched items only) |
| 02 | Category & SKU filters | Limit any rule to one or more categories (subcategories auto-included) or to specific products by SKU |
| 03 | Best-discount logic | When multiple rules share the same target and scope, only the highest discount is applied — no unintended stacking |
| 04 | Coupon conflict modes | Stack (default), Exclusive, or Best-discount-wins — full control over coupon interaction |
| 05 | Dual notice positions | Independent templates and CSS classes for cart/checkout and product page |
| 06 | WPML & Polylang ready | Notice texts registered as translatable strings |
| 07 | HPOS compatible | Full WooCommerce High-Performance Order Storage support declared |
| 08 | Zero bloat | No frontend JavaScript, no external libraries |
Configure the notice text from WooCommerce → Quantity Discounts. The following variables are replaced at runtime:
{current} → current quantity in the cart
{missing} → units still needed to reach the target
{target} → target quantity
{discount} → formatted discount value (e.g. 10% or €5.00)
Example:
Add {missing} more to get {discount} off your order!
| Mode | Behaviour |
|---|---|
| Stack (default) | Quantity discount always applies, alongside any active coupon |
| Exclusive | Quantity discount (and its notice) are skipped if any coupon is active |
| Best discount wins | Compares totals — applies quantity discount only if it exceeds the coupon discount |
- WordPress 6.0 or later
- WooCommerce (required)
- PHP 7.4 or later
Tested with WordPress 6.9.1 and WooCommerce 10.5.3.
- Clone this repository or download the ZIP and upload to
/wp-content/plugins/. - Activate the plugin from Plugins in your WordPress admin.
- Navigate to WooCommerce → Quantity Discounts to configure your rules.
The plugin is pending review on the WordPress.org plugin directory.
- Renamed internal prefix from
pbd_toctqds_to meet WordPress.org naming requirements (≥ 5 chars). - Moved inline admin JavaScript to an enqueued file (
assets/js/ctqds-admin.js) viawp_enqueue_script(). - Fixed late escaping on all echoed variables.
- Fixed folder name in Installation instructions.
- Removed WordPress.org SVN-only assets (icons) from the plugin ZIP.
- Conflict mode now also suppresses cart and product page notices when a coupon is active (Exclusive and Best modes), preventing a discount promise that would not be applied.
- Added conflict mode setting: Stack, Exclusive, or Best discount wins.
- SKU-based rule filtering (takes priority over category).
- Product page notices with dedicated template and CSS class.
- Discount scope per rule: entire cart or matched items only.
- HPOS compatibility declaration.
- Settings link in the plugin row.
- Renamed to CartTrigger – Quantity Discounts.
- WPML and Polylang string translation support.
- Conflict warning for rules sharing the same target with different discount values.
- Per-rule custom CSS class for frontend notices.
- Initial public release: trigger/target rules, percentage and fixed discounts, category filtering.
GPLv2 or later — developed by Poletto 1976 S.L.U.