-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Fix/28759 billing shipping addresses #29605
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
Conversation
|
Hey @roykho ... apologies, I missed a key step in my testing instructions (now updated). Can you try again? |
|
I'm not sure incog by itself is enough, if you then log back into the same account, because of the cart persistence that happens via stored user meta data. Also, cool—was totally unaware of that tool. TIL 🙃 |
| * Note that this does not indicate if the customer's shipping address | ||
| * is complete, only that one or more fields are populated. | ||
| * | ||
| * @return bool |
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.
Maybe it would be good to add @since 5.3.0 versioning.
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.
Added.
roykho
left a comment
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.
LGTM! Tested well and thanks for writing the tests!
All Submissions:
Changes proposed in this Pull Request:
In some countries the state (county) field is optional—the UK is one such example. That means we might have a saved billing address with a county, and a saved shipping address without (or similar).
In these cases we should not copy the billing state/county to the shipping state/county: that action is really only appropriate if we don't already have a shipping address. Note that this problem also applies to the country field (though, it is easiest to see in relation to the state/county field).
Closes #28759.
How to test the changes in this Pull Request:
5.1.0tag).† If you have your own snippet to kill the user session and dump the cart contents that's probably fine, or you could try using this snippet (updating the user ID, and if necessary the table prefix, accordingly) then flushing the cache.
Other information:
Changelog entry