1.8.1: a group's own coupon and the group discount do not stack
CI / WordPress latest + WooCommerce latest on PHP 8.3 (pull_request) Successful in 1m12s
Compatibility / WP latest / WC latest / PHP 7.4 (pull_request) Skipped
Compatibility / WP latest / WC beta / PHP 8.3 (pull_request) Skipped
Compatibility / WP latest / WC latest / PHP 8.3 (pull_request) Skipped
Compatibility / WP nightly / WC latest / PHP 8.3 (pull_request) Skipped
Compatibility / WP latest / WC latest / PHP 8.4 (pull_request) Skipped
Compatibility / Keep the compatibility headers honest (pull_request) Skipped
CI / Static checks (pull_request) Successful in 4m48s

A Netic member using the teamnetic coupon on garageristeriet.dk got 20%
from the coupon and then 20% off the remainder as an "Email discount"
fee: 36% in all. When a cart holds one of the coupons the group lists
under Shipping Rules -> Coupon codes, the group's percentage fee is
skipped and the coupon is the discount. Coupons the group does not list
stack as before.

Smoke tests: 104 assertions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
kristianwind
2026-11-18 12:33:20 +01:00
co-authored by Claude Opus 5.5
parent c2df6a0b48
commit 69f09574da
8 changed files with 37 additions and 8 deletions
+4 -1
View File
@@ -4,7 +4,7 @@ Tags: woocommerce, discount, email, shipping, coupon
Requires at least: 5.8
Tested up to: 7.1.2
Requires PHP: 7.4
Stable tag: 1.8.0
Stable tag: 1.8.1
WC requires at least: 6.0
WC tested up to: 11.1.2
License: GPLv2 or later
@@ -97,6 +97,9 @@ The most specific match wins: exact email, then domain, then partial match.
== Changelog ==
= 1.8.1 =
* A group member who uses one of the group's own coupons (listed under Shipping Rules → Coupon codes) now gets the coupon's discount instead of the group's, never both. Before, the two stacked: 20% from the coupon and then 20% off what was left. A coupon the group does not list works as before.
= 1.8.0 =
* Shipping rules can follow a coupon. Under Shipping Rules each group has a new "Coupon codes" field: a customer with one of those coupons in the cart gets the group's shipping methods, including the ones marked "Only", whatever email address they use. Only the shipping follows the coupon; the coupon gives its own discount, and the group's percentage stays with the group's email addresses. To keep the shipping for the right people, restrict the coupon to their addresses under "Allowed emails" in WooCommerce.