-
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
feat: modal checkout redesign tweaks #2805
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.
Looking good! Very minor feedback below.
Co-authored-by: Derrick Koo <[email protected]>
Update: 6ff7dd0 tweaks the "cover fee" so it updates more instances in which the price is rendered. Fixes an issue when rendering the order review table: Automattic/newspack-blocks#1602 (review) |
The solution proposed in 6ff7dd0 doesn't work well. Every price is being contained in the ![]() To properly implement the "cover fee" integrated with Woo's taxes or other features that may impact the final order price, the strategy for this might have to change. It's currently not working well in master either, so I think we should tackle it separately so it's no tied to this epic. |
More on the "cover fee". The design proposes adding a row to the table, which seems like a better approach which also seems to better integrate with how Woo does things: ![]() cc @adekbadek |
I started a draft here to refactor the cover fee approach to use Woo's |
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.
I started a draft here to refactor the cover fee approach to use Woo's
WC()->cart->add_fee()
. This should be tackled outside of the RAS-ACC project since it's affecting live sites.
Sounds good! In that case this looks good.
🎉 This PR is included in version 3.0.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.1.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.2.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.6.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.9.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.1.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.2.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 4.4.0-epic-ras-acc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Combines #2794 and #2771 for Automattic/newspack-blocks#1602.
2aaa84a skips reCAPTCHA when only performing form validation. There's no need for the extra API request if it's already performed while placing the order.
29ca892 moves the custom text for the order button to the main plugin's donation feature. It's best if the modal checkout, where it currently is, doesn't handle donation-specific tweaks.
Also changes how the initializer method registers hooks. I noticed all the hooks are registered inside a ! is_admin() condition, which doesn't seem like good practice. The origin of this is here #225 and the intention is to prevent the process_donation_form, hooked to wp_loaded from running in the admin. This check was moved to inside the process_donation_form, which is more appropriate for that purpose.
How to test the changes in this Pull Request:
Instructions at Automattic/newspack-blocks#1602
Other information: