Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 864f950

Browse files
james-allanMatt Allan
andauthored
Exclude switch orders from order needs payment checks (#669)
* Move change log entry to the release it was actually included in * Exclude switch orders from order needs payment checks * Add changelog entry * Update changelog.txt Co-authored-by: Matt Allan <[email protected]> --------- Co-authored-by: Matt Allan <[email protected]>
1 parent f42488f commit 864f950

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changelog.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*** WooCommerce Subscriptions Core Changelog ***
22

3+
= 7.4.3 - 2024-xx-xx =
4+
Fix - Prevent errors during checkout when a customer is switching their subscription product and does not require payment.
5+
36
= 7.4.2 - 2024-08-27 =
47
* Fix - Resolved an issue where simple product prices were incorrectly set to $0 when purchasing subscriptions and simple products with a coupon in WC 9.2.
58

@@ -10,12 +13,12 @@
1013
* Dev - Introduce new parameter to WC_Subscription::get_last_order() to enable filtering out orders with specific statuses.
1114
* Update - Schedule subscription-related events with a priority of 1 to allow for earlier execution within the Action Scheduler.
1215
* Fix - Ensure admin notices are displayed after performing bulk actions on subscriptions when HPOS is enabled.
16+
* Fix - Resolved an error when purchasing subscription products on the block checkout with a limited recurring coupon.
1317

1418
= 7.3.0 - 2024-07-16 =
1519
* Fix - Label improvements on subscription and order page templates.
1620
* Fix - Fixed an issue with subscriptions containing multiple renewal orders to mark a random item as processing, instead of the last order.
1721
* Fix - Prevent errors from invalid subscription objects during customer payment method updates.
18-
* Fix - Resolved an error when purchasing subscription products on the block checkout with a limited recurring coupon.
1922

2023
= 7.2.0 - 2024-06-13 =
2124
* Fix - label improvement on my subscription page template.

includes/class-wc-subscriptions-order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ public static function order_needs_payment( $needs_payment, $order, $valid_order
694694
}
695695

696696
// Check if there's a subscription attached to this order that will require a payment method.
697-
foreach ( wcs_get_subscriptions_for_order( $order ) as $subscription ) {
697+
foreach ( wcs_get_subscriptions_for_order( $order, [ 'order_type' => 'parent' ] ) as $subscription ) {
698698
$has_next_payment = false;
699699
$contains_expiring_limited_coupon = false;
700700
$contains_free_trial = false;

0 commit comments

Comments
 (0)