-
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 display WCS&T help in tasks if WCShip or WCTax is active #48703
Don't display WCS&T help in tasks if WCShip or WCTax is active #48703
Conversation
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: -183 B (-0.01%) Total Size: 2.49 MB
|
Hi @samnajian, 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: |
07eb4f5
to
83fb7e7
Compare
@waclawjacek |
Thanks for the review! Yep, that's expected - the checks are for "active", not for "installed". Using "active" allowed me to duplicate the existing logic, incl. writing checks identical to some existing ones just with different plugin slugs/class names, and using the We can change it from "is WCShip/WCTax active?" to "is WCShip/WCTax installed?" but this would require input from @MatthiasReinholz and/or @kloon. If we don't care about it too much, I'd say let's leave it as it is so the scope of changes is a little bit smaller. |
5415a58
to
8468643
Compare
Force-pushed because the base branch this PR was built on top of has since been merged to |
Thanks for the ping @waclawjacek , |
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.
Based on this Slack thread p1719388812098259-slack-C04KWSNPSE5 it's fine to rely on plugin activation for this PR, with this condition, this PR works as expected.
LGTM,
Ultimately, I believe that's the goal. But for the time being, we're only taking care to not recommend WCS&T if it'd lead to a conflict with the WCShip/WCTax extensions. |
Submission Review Guidelines:
Changes proposed in this Pull Request:
Part of https://github.com/woocommerce/woocommerce-shipping/issues/187.
If the "WooCommerce Shipping" or "WooCommerce Tax" extension is active, don't recommend the incompatible "WooCommerce Shipping & Tax" extension.
This PR removes WCS&T-related help pages from the "Select your shipping options" and "Collect sales tax" tasks if either the WCShip or WCTax extension is active.
Screenshots
Note that despite the help items saying "WooCommerce Shipping" and "WooCommerce Tax", they actually refers to WCS&T's functionalities.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
wp-content/plugins
, link the WooCommerce plugin you just built.Let's assume you checked out the WooCommerce repo to
/home/me/woocommerce
.Note how below we aren't creating a link to
/home/me/woocommerce
but rather to a directory within it:Testing the "Collect sales tax" task
Note that despite the help item saying "WooCommerce Tax", it actually refers to WCS&T's tax functionality.
Testing the "Select your shipping options" task
Note that despite the help item saying "WooCommerce Shipping", it actually refers to WCS&T's shipping functionality.
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 display information about setting up WooCommerce Shipping & Tax in the task steppers for "Collect sales tax" and "Select your shipping options".
The changes in this PR only adjust the help items merchants see.