From ff291c3fa10b529bc16417a0964580f51ee36d25 Mon Sep 17 00:00:00 2001 From: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Date: Wed, 12 Apr 2023 09:39:16 +1000 Subject: [PATCH 1/3] Display all applied coupon labels in cart/checkout --- .../checkout/recurring-coupon-totals.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/templates/checkout/recurring-coupon-totals.php b/templates/checkout/recurring-coupon-totals.php index be3337c10..6f34a7778 100644 --- a/templates/checkout/recurring-coupon-totals.php +++ b/templates/checkout/recurring-coupon-totals.php @@ -8,7 +8,6 @@ */ defined( 'ABSPATH' ) || exit; -$display_heading = true; foreach ( WC()->cart->get_coupons() as $code => $coupon ) { foreach ( $recurring_carts as $recurring_cart_key => $recurring_cart ) { @@ -17,18 +16,16 @@ continue; } ?> - - - + + - - - - + Date: Wed, 12 Apr 2023 09:39:48 +1000 Subject: [PATCH 2/3] Remove @author to fix phpcs violation --- templates/checkout/recurring-coupon-totals.php | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/checkout/recurring-coupon-totals.php b/templates/checkout/recurring-coupon-totals.php index 6f34a7778..e5fc52b09 100644 --- a/templates/checkout/recurring-coupon-totals.php +++ b/templates/checkout/recurring-coupon-totals.php @@ -2,7 +2,6 @@ /** * Recurring cart subtotals totals * - * @author WooCommerce * @package WooCommerce Subscriptions/Templates * @version 1.0.0 - Migrated from WooCommerce Subscriptions v3.1.0 */ From 8c64385714a1fe6a0f10d2dfb35802fd1d2b4b98 Mon Sep 17 00:00:00 2001 From: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Date: Wed, 12 Apr 2023 09:42:59 +1000 Subject: [PATCH 3/3] Add changelog entry --- changelog.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.txt b/changelog.txt index b4e2cab2c..15f27e649 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ *** WooCommerce Subscriptions Core Changelog *** += 5.6.0 - 2023-xx-xx = +* Fix - Display labels for all coupons applied to cart and checkout. #427 + = 5.5.0 - 2023-03-10 = * Fix - When HPOS is enabled, changing your address while paying for a renewal order will update the address on the subscription. #413 * Fix - Prevent admin error notices being shown for the "subscription trial end" event that was caused by no callbacks being attached to this scheduled action. #414