-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix shipping email replacing with billing email. #35014
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
base: 2.4-develop
Are you sure you want to change the base?
Fix shipping email replacing with billing email. #35014
Conversation
Hi @pablomishchenko. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
…to shipping_email_address_34614
@magento run WebAPI Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Description (*)
When creating an order out of the guest cart is being done, the shipping email is being replaced by the billing email.
The reason is the absence of checks for the presence of email in the shipping address. The shipping email is always set from the customer email. Added checks for shipping email present and use it for shipping address instead of using customer address.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Precondition: Using REST API of magento
https://magento.test/rest/default/V1/guest-carts
https://magento.test/rest/default/V1/guest-carts/{created-guest-cart-step-1}/items
. Example body{ "cartItem":{ "sku": "sample-sku", "qty": "1" } }
https://magento.test/rest/default/V1/guest-carts/{created-guest-cart-step-1}/shipping-information
. Example bodyon this step in table

quote_address
you can see that addressed have correct emailshttps://magento.test/rest/default/V1/guest-carts/{created-guest-cart-step-1}/order
. Example body{"paymentMethod": {"method": "checkmo"}}
sales_order_address
table contain correct emailsContribution checklist (*)