Skip to content

Commit

Permalink
Updates WooPayments with the latest from Subscriptions Core library (…
Browse files Browse the repository at this point in the history
…6.6.0) (#7934)

Co-authored-by: Matt Allan <[email protected]>
  • Loading branch information
james-allan and mattallan authored Dec 21, 2023
1 parent f1cabba commit ad7111c
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 9 deletions.
4 changes: 4 additions & 0 deletions changelog/subscriptions-6.6.0-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Deprecate the WC_Subscriptions_Synchroniser::add_to_recurring_cart_key(). Use WC_Subscriptions_Synchroniser::add_to_recurring_product_grouping_key() instead.
4 changes: 4 additions & 0 deletions changelog/subscriptions-6.6.0-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Introduce a new wcs_get_subscription_grouping_key() function to generate a unique key for a subscription based on its billing schedule. This function uses the existing recurring cart key concept.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Updated subscriptions-core to version 6.6.0
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Fetch and update the `_cancelled_email_sent` meta in a HPOS compatibile way.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-4
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Ensure proper backfilling of subscription metadata (i.e. dates and cache) to the postmeta table when HPOS is enabled and compatibility mode (data syncing) is turned on.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Resolved an issue that would cause undefined $current_page, $max_num_pages, and $paginate variable errors when viewing a page with the subscriptions-shortcode.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-6
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

When HPOS is enabled and data compatibility mode is turned on, make sure subscription date changes made to postmeta are synced to orders_meta table.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-7
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Prevents a PHP fatal error that occurs when the cart contains a renewal order item that no longer exists.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

When using the checkout block to pay for renewal orders, ensure the order's cart hash is updated to make sure the existing order can be used.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"automattic/jetpack-autoloader": "2.11.18",
"automattic/jetpack-identity-crisis": "0.8.43",
"automattic/jetpack-sync": "1.47.7",
"woocommerce/subscriptions-core": "6.4.0"
"woocommerce/subscriptions-core": "6.6.0"
},
"require-dev": {
"composer/installers": "1.10.0",
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad7111c

Please sign in to comment.