-
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
Subscriptions sign-up fees are incorrectly converted when using WCPay multi-currency #5292
Comments
@Automattic/sigma would you be able to handle this issue? |
Thanks @haszari and @RadoslavGeorgiev for the ping, added to our backlog. |
Thanks @tpaksu , could you also add a rough estimate? |
@jessepearson has solved something like this recently, I estimated it as 2, but it may be a 1 to him. |
This is happening due to the filter priority change in this PR: Reverting the filter priority to something below 100 fixes the issue, but will likely cause issues that #4939 fixed. The higher priority causes a double conversion to happen during the process here: |
It looks like Product Bundles uses a filter priority of 98: And Subscriptions core uses a priority of 100: Setting our priority to 99 appears to fix compatibility with both extensions, however, leaves us very little wiggle room if we need to adjust again. |
Thanks @jessepearson – good analysis. Is there anything you can think of to make this more robust? Maybe architects team have some ideas – fyi @jrodger |
The main issue with trying to convert prices is that we rely on filters run when |
Hi, just wondering if this was still being worked on. Seems there was a potential fix some time ago. Looking forward to it. Thanks. |
@dan-roboticarm Yes, it's still being worked on. There was a potential fix, however, other issues arose and need to be fixed, as well. |
6070592-zen With my findings, a product with a $16 AUD sign up fee is initially converted to $8 USD when it should be $12 USD. Modifying the cart to force a refresh changes the price to $16 USD even though it should still be $12 USD. |
6240945-zen |
Currently looking into this. Since the PR has been sitting for so long, I need to go through each of the testing steps to confirm everything is testing as it should be. I am presently partially through the list, and have also added additional testing to include grouped subscription switching, as mentioned in the PR. I will fix issues as I come across them and set the PR to be reviewed again. I am hoping to get through everything by the end of tomorrow, but that depends on what comes up during the day. |
Noting that we were informed to do nothing but tickets to assist support: p1683186380128409-slack-C01B8KNUYSW |
Describe the bug
Sign-up fees are incorrectly converted with WCPay's multi-currency feature when customers select a currency that differs from the store's base currency.
To reproduce
Screenshots
USD:
CAD:
Expected behavior
I expected the sign-up fee to be properly converted.
Additional details
Identified in 5788077-zen.
Originally reported by @maxlaf in WC Subscriptions repo: 4441-gh-woocommerce/woocommerce-subscriptions
Coupons are also affected by this as they seem to apply to the price, not the subtotal. A 100% sign-up fee discount will only discount the converted price, not the incorrectly converted subtotal.
System status
The text was updated successfully, but these errors were encountered: