This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Fix more instances of hardcoded pickup_location
string
#8542
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is because we need it to be accessible by other classes.
opr
added
status: needs review
block: cart
Issues related to the cart block.
block: checkout
Issues related to the checkout block.
type: technical debt
This issue/PR represents/solves the technical debt of the project.
labels
Feb 24, 2023
woocommercebot
requested review from
a team and
mikejolley
and removed request for
a team
February 24, 2023 18:53
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
7 tasks
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
mikejolley
approved these changes
Feb 27, 2023
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 and working 👍🏻
github-actions
bot
added
status: ready to merge
and removed
status: needs review
labels
Feb 27, 2023
dinhtungdu
approved these changes
Feb 28, 2023
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 did another round of testing and this is working as expected.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
block: cart
Issues related to the cart block.
block: checkout
Issues related to the checkout block.
type: technical debt
This issue/PR represents/solves the technical debt of the project.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We had a few leftover instances of
pickup_location
being used to check whether the current shipping method is a local pickup once. Since #8256 allows third party methods to register themselves as local pickup methods, we need to dynamically get the list of all method IDs that supportlocal-pickup
.This PR addresses a few stragglers that did not get caught first time around.
It also creates a
LocalPickupUtils
class which is currently used to containget_local_pickup_method_ids
- this previously existed inShippingController
but there were some instances where we needed to use this outside of theShippingController
class. A util class seemed more appropriate here.Testing
Automated Tests
User Facing Testing
Expand for example shipping method
Amazon Locker
in the list.Amazon Locker
in the local pickup section.WooCommerce Visibility
Changelog