-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[GraphQL] Default Shipping address not set on new cart #39828
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
Comments
Hi @indykoning. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @indykoning, Thanks for your reporting and collaboration. We have tried to reproduce the issue in latest 2.4-develop instance and we are not able to reproduce the issue.Kindly refer the screenshots. ![]() We have an account with a default shipping and billing address set and while Creating a new customerCart we are getting a billing address as null.Could you please confirm the same you are getting and could you please elaborate the addproducts to cart mutation. Thanks. |
Hi @indykoning, This issue is being closed since it has not been updated in a long time.Please feel free to reopen or raise a new ticket if the issue still exists. Thanks. |
Preconditions and environment
Steps to reproduce
Expected result
I would expect to see the shipping and billing address both being set in the response
Actual result
However in the response there is a billing address entered but no shipping address
Additional information
When you check the quote_address table you can see that the billing address has every field filled, firstname, street, etc.
The shipping address however does not, every field is empty. But same_as_billing is 1.
Updating the cart by adding another product will fill the shipping address with that data as well and solves this issue.
This happens because the data is not in the table itself and thus does not pass the validation here:
magento2/app/code/Magento/QuoteGraphQl/Model/Resolver/ShippingAddresses.php
Line 68 in d550808
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: