-
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
Update Name Your Price compatibility to use new Compatibility methods #7269
Conversation
…te code accordingly.
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
@helgatheviking I just sent you a DM in slack with a link to a zip file, can you check it out and see if all the expected functionality is there? It takes the edits in the PR (which are copied from your PR #7172 ) and adds them on top of my other changes I've done. |
@jessepearson lgtm |
Size Change: 0 B Total Size: 1.42 MB ℹ️ View Unchanged
|
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.
This is not a blocker for the PR. I stumbled upon this while looking for PRs from other teams to review.
Thank you for your work on this, Jesse. Please feel free to respond to my comments whenever it's convenient for you.
…2-nyp-cart-editing
…2-nyp-cart-editing
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.
Tested various scenarios with the NYP plugin, and all tests passed:
- Added only the NYP product to the cart
- Added another regular product alongside the NYP product
- Tested changing currencies on the cart
- Tested changing currencies on the edit price page
- Tested changing currencies after editing the price
- Tested changing currencies on the checkout page
And all showed the correct price. Thanks for working on this!
LGTM, 🚢 it!
Fixes #5524 #7172
Changes proposed in this Pull Request
This PR is the second part of #7202 that uses the new methods in order to allow Name Your Price amounts to be able to be switched on the cart and checkout pages.
Adds param to the "Edit price" link for a NYP product in the cart. When clicked the user is redirected back to the product page with the current price pre-filled. If the user switches the currency at this point the pre-filled price will not change until this patch is implemented.
Testing instructions
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.