-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 broken admin order after emptying order and readding items #21051
Fix broken admin order after emptying order and readding items #21051
Conversation
…roken quote process until address is updated
Hi @driskell. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
I changed the PR to 2.2-develop and may have confused the contributor checks... |
@magento-engcom-team give me test instance |
Hi @dmytro-ch. Thank you for your request. I'm working on Magento instance for you |
Hi @dmytro-ch, here is your new Magento instance. |
@magento-engcom-team give me 2.2-develop instance |
Hi @dmytro-ch. Thank you for your request. I'm working on Magento 2.2-develop instance for you |
Hi @dmytro-ch, here is your Magento instance. |
Hi @driskell, Thank you! |
@dmytro-ch I tracked a change that sends billing address data when you click get shipping rates. |
I also restricted shipping to UK only in my latest reproduction case, just in case the default Magento shipping rules mean a blank address still gets the shipping option. So I can now reproduce again. Will now track down the change that changed things. |
The above improved a fair few things. With this PR it will fix the issue I describe above where when you untick the use billing as shipping then empty cart, addresses are lost on server and not repopulated (the do not use billing as shipping flag is lost on server - so even though we send new address data now on shipping rates collection, it's ignored as it resets to using the billing address which is empty and not resent) Kind of really like the new flow - it's much much smoother! Loving it. If this can be merged it'll be awesome 👍 |
Tested and reproduced successfully even without changing shipping configuration to UK only. So updated. Also tested the PR fix and it fixes the issue. (I used those machines generated above - please feel free to create new ones to ensure clean tests.) |
Hi @sidolov, thank you for the review. |
Hi @driskell ! Can you please port the pull request to 2.3-develop as we'd like to merge bug fixes to 2.3 before 2.2? |
✔️ QA Passed |
Thanks! |
Hi @driskell, thank you for your contribution! |
Description (*)
After filling in a backend Magento Admin new order and then removing all items from the order creation screen, when you then add an item back in you cannot select any shipping rates and "Sorry, no quotes are available" appears until you modify the address to cause it to re-save the address.
Investigation shows the following commit causes this regression by wiping the address from the database when last item is removed from the quote, even though in Magento Admin the address should still remain.
4c5372d
Manual testing scenarios (*)
Contribution checklist (*)