-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Don't recommend WCS&T in tax task if WCShip or WCTax is active #48699
Don't recommend WCS&T in tax task if WCShip or WCTax is active #48699
Conversation
…ommerce/data, woocommerce
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit. |
Size Change: 0 B Total Size: 2.49 MB |
…-with-wcship-or-wctax-active
Hi @Ferdev, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
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.
Code looks good 👍
I built WooCommerce (this branch), latest WooCommerce Shipping and latest WooCommerce Tax and installed them on a new site. With WooCommerce Shipping and WooCommerce Tax disabled, the collect tax task shows "WooCommerce Tax" in the first step of the wizard. If any of them are enabled, or both, the "WooCommerce Tax" extension is not recommended anymore.
So yeah, this is ready to ship Thanks!
…-with-wcship-or-wctax-active
Submission Review Guidelines:
Changes proposed in this Pull Request:
Part of woocommerce/woocommerce-shipping#187.
If the "WooCommerce Shipping" or "WooCommerce Tax" extension is active, don't recommend the incompatible "WooCommerce Shipping & Tax" extension.
This PR implements the above restriction in the WC > Home > task list > Collect sales tax task.
Screenshots
Before:
(Note the screenshot recommends "WooCommerce Tax" but the solution used under the hood is actually the "WooCommerce Shipping & Tax" extension.)
After, if WCShip or WCTax is present:
(The "Configure" button leads to the WC > Settings > Tax > Standard rates page.)
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Changelog entry
Changelog Entry Details
Significance
Type
Message
Changelog Entry Comment
Comment
If either the upcoming WooCommerce Shipping or WooCommerce Tax extension is active, don't suggest WooCommerce Shipping & Tax in the "Collect sales tax" Home task.
This only adjusts the extension recommendation merchants receive and does not affect any other functionality.