-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use recommended order currency API for multicurrency subscription renewal | switch | resubscribe #4228
Use recommended order currency API for multicurrency subscription renewal | switch | resubscribe #4228
Commits on May 4, 2022
-
use recommended
WC_Order::get_currency()
for getting renewal currency:- previously used raw `get_post_meta()` - this is no longer recommended, and could break on stores using (forthcoming) custom order tables
Rua Haszard committedMay 4, 2022 Configuration menu - View commit details
-
Copy full SHA for e154bb3 - Browse repository at this point
Copy the full SHA e154bb3View commit details -
Rua Haszard committed
May 4, 2022 Configuration menu - View commit details
-
Copy full SHA for 14eb4e3 - Browse repository at this point
Copy the full SHA 14eb4e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a78530 - Browse repository at this point
Copy the full SHA 2a78530View commit details
Commits on May 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e01a19c - Browse repository at this point
Copy the full SHA e01a19cView commit details
Commits on May 9, 2022
-
convert id to order/subscription object before calling get_currency:
- fix logic issue in previous commit
Rua Haszard committedMay 9, 2022 Configuration menu - View commit details
-
Copy full SHA for 20ea6b0 - Browse repository at this point
Copy the full SHA 20ea6b0View commit details
Commits on Jun 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for dfbde74 - Browse repository at this point
Copy the full SHA dfbde74View commit details -
fix fatal error on resubscribe – get subscription from ID
Rua Haszard committedJun 14, 2022 Configuration menu - View commit details
-
Copy full SHA for c433f4e - Browse repository at this point
Copy the full SHA c433f4eView commit details -
Merge remote-tracking branch 'origin/fix/4152-subscribe-renew-multicu…
…rrency-order-meta-api' into fix/4152-subscribe-renew-multicurrency-order-meta-api
Rua Haszard committedJun 14, 2022 Configuration menu - View commit details
-
Copy full SHA for bc31724 - Browse repository at this point
Copy the full SHA bc31724View commit details
Commits on Jun 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 23ec842 - Browse repository at this point
Copy the full SHA 23ec842View commit details
Commits on Jun 17, 2022
-
fix override_selected_currency test for renewal case:
- Make a real order with non-default currency - integration test style. - Enhance mock_wcs_cart_contains_renewal so test can customise product and renewal order ids. - Mock the real order instead of hacking post meta (legacy implementation detail). - Fix up all uses of mock_wcs_cart_contains_renewal() for new signature.
Rua Haszard committedJun 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 4b733df - Browse repository at this point
Copy the full SHA 4b733dfView commit details -
Repair multicurrency sub switch unit test:
- Rename / update comment to clarify test scope. - Mock up a real order (aka subscription) with custom currency. - Mock that order idea in $_GET request params.
Rua Haszard committedJun 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 37bb933 - Browse repository at this point
Copy the full SHA 37bb933View commit details
Commits on Jun 23, 2022
-
repair multicurrency subs switch in cart unit test:
- use WC_Order for mock subscription - mock subscription and cart APIs as needed
Rua Haszard committedJun 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 053bf3c - Browse repository at this point
Copy the full SHA 053bf3cView commit details -
refactor mock_wcs_get_order_type_cart_items so can pass a real order id
Rua Haszard committedJun 23, 2022 Configuration menu - View commit details
-
Copy full SHA for f45d6b9 - Browse repository at this point
Copy the full SHA f45d6b9View commit details -
repair multicurrency sub resubscribe unit test:
- parameterise wcs_get_order_type_cart_items so can use real order id - mock sub (order) and wcs_get_subscription to return mocked sub - it's fine right
Rua Haszard committedJun 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 3d97600 - Browse repository at this point
Copy the full SHA 3d97600View commit details -
remove a bunch of extraneous whitespace / php linter fixes
Rua Haszard committedJun 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 4a1cfc8 - Browse repository at this point
Copy the full SHA 4a1cfc8View commit details -
remove extraneous whitespace / php linter fixes
Rua Haszard committedJun 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 02cf94e - Browse repository at this point
Copy the full SHA 02cf94eView commit details -
add local wrapper for wcs_get_subscription() – attempt psalm fix:
- ERROR: UndefinedFunction $switch_subscription = wcs_get_subscription( $switch_cart_item['subscription_switch']['subscription_id'] );
Rua Haszard committedJun 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 1dda55e - Browse repository at this point
Copy the full SHA 1dda55eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b21922a - Browse repository at this point
Copy the full SHA b21922aView commit details -
fix mismatched param name in docblock for get_subscription wrapper
Rua Haszard committedJun 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 73780a4 - Browse repository at this point
Copy the full SHA 73780a4View commit details
Commits on Jun 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d3eeea8 - Browse repository at this point
Copy the full SHA d3eeea8View commit details -
remove incorrect return type (array) from get_subscription test helper +
+ clarify true type in docblock comment
Rua Haszard committedJun 27, 2022 Configuration menu - View commit details
-
Copy full SHA for 76365db - Browse repository at this point
Copy the full SHA 76365dbView commit details -
Merge remote-tracking branch 'origin/fix/4152-subscribe-renew-multicu…
…rrency-order-meta-api' into fix/4152-subscribe-renew-multicurrency-order-meta-api
Rua Haszard committedJun 27, 2022 Configuration menu - View commit details
-
Copy full SHA for 9290953 - Browse repository at this point
Copy the full SHA 9290953View commit details -
remove whitespace offending the linter
Rua Haszard committedJun 27, 2022 Configuration menu - View commit details
-
Copy full SHA for 6c139f6 - Browse repository at this point
Copy the full SHA 6c139f6View commit details
Commits on Jun 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 91cfcc0 - Browse repository at this point
Copy the full SHA 91cfcc0View commit details -
rename subscription variable – it's resubscribe not switch
Rua Haszard committedJun 28, 2022 Configuration menu - View commit details
-
Copy full SHA for a5ccf31 - Browse repository at this point
Copy the full SHA a5ccf31View commit details
Commits on Jun 29, 2022
-
Merge remote-tracking branch 'origin/fix/4152-subscribe-renew-multicu…
…rrency-order-meta-api' into fix/4152-subscribe-renew-multicurrency-order-meta-api
Rua Haszard committedJun 29, 2022 Configuration menu - View commit details
-
Copy full SHA for 98afc22 - Browse repository at this point
Copy the full SHA 98afc22View commit details