-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: required billing fields in My Account #3389
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the checkout page that loads, confirm that billing address fields are only required if they're also required in Newspack > Reader Revenue > Donations.
Should all fields be displayed, but only some marked as required? In my testing, only the fields requried in Newspack > Reader Revenue > Donations are displayed. Not sure if that's how it's supposed to be.
After completing the renewal, confirm that the "thank you" confirmation page does NOT use the modal checkout template.
In my testing, the confirmation page does use the checkout template:

Yes, all billing fields should be displayed in the non-modal checkout page, but only the ones selected in Newspack > Reader Revenue > Donations should be required. (I didn't want to change the look of these flows too much at this point.)
Aha, something broke with donation subscriptions. Revisiting... |
@adekbadek looks like the Blocks plugin has a redundant filter for checkout fields that affects donate checkouts in all contexts (not just modal checkout). This is removing the 788faa4 should remove that check, so that all fields continue to be shown for Donate products in non-modal checkouts, too.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit your billing address and confirm that the fields here are only required if they're also required in Newspack > Reader Revenue > Donations
This didn't work in my testing – WC uses the standard set of required fields when editing an address:


The checkout behaves as expected, though, with all fields listed but only the ones selected in the RR wizard marked as required:

After completing the renewal, confirm that the "thank you" confirmation page does NOT use the modal checkout template. I
Yes, this works as described now.
@adekbadek doh, 183e4e4 should re-fix for editing billing address. |
Any further feedback on this, @adekbadek? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reply! Re-tested and it works fine now.
Thanks, @adekbadek! Holding for a Monday release. |
## [5.3.9](v5.3.8...v5.3.9) (2024-09-16) ### Bug Fixes * required billing fields in My Account ([#3389](#3389)) ([eb58c6b](eb58c6b))
🎉 This PR is included in version 5.3.9 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 5.4.0-alpha.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Fixes a regression that broke the address-editing solution in #2835, and adds a new
is_my_account
hidden billing field to checkouts originating from My Account so that we can determine post-checkout if the checkout originated from My Account (because we can only get the referrer URL from the immediately preceding page, not two pages earlier).Also fixes a bug where clicking "Renew Now" or "Pay Now" from My Account redirects to the My Account main page instead of allowing you to complete the renewal.
See Automattic/newspack-blocks#1869 too, which uses a fix from this PR.
How to test the changes in this Pull Request:
Other information: