-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix table rate failing for zip+4 address #17770 #18166
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
Fix table rate failing for zip+4 address #17770 #18166
Conversation
|
Hi @magently. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
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 am wondering why did you remove the line with the star?
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.
If you look at lines 49 and 54 in original code, you will see that there were two identical conditions in this OR statement. So we removed one.
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.
@magently yes, I missed that. You are right
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 see no reason to make this method public. Do you?
381e9de to
6e4a4b2
Compare
|
Hi @slavvka, thank you for the review. |
|
Hi @magently. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
Currently when a customer uses an American ZIP+4 postcode, the table rate shipping method fails to return a quote.
Fixed Issues (if relevant)
Manual testing scenarios
Country,Region/State,Zip/Postal Code,Weight (and above),Shipping PriceUSA,*,12345,1,2Expected result
Actual result
The issue is now fixed. If the customer uses a ZIP+4 code (ex: 12345-1234) in case a rate for an exact match (12345-1234) is not found in the table there will be a fallback check for 12345.
Contribution checklist