Skip to content
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

Could not use the \"same_as_shipping\" option, because the shipping address has not been set. #364

Open
Jihad-orienteed opened this issue Mar 1, 2024 · 3 comments · May be fixed by #373
Labels
bug Something isn't working

Comments

@Jihad-orienteed
Copy link

I got this error after placing an order Could not use the "same_as_shipping" option, because the shipping address has not been set.
Steps to reproduce the isse

  1. add an dwonloadable product to the cart fro example :
  2. as soon as placing an order the error appear and the error because setBillingMutation have a isSameAsShipping flag
    same_as_shipping error
    setBilling contain same as shipping
@rajeev-k-tomy rajeev-k-tomy added the bug Something isn't working label Mar 4, 2024
@Man4x
Copy link

Man4x commented May 17, 2024

Just in case it could help...
When I'm debugging, the isBillingSame constant in the components/PlaceOrder/hooks/useAddressSave is read from localStorage "cart.is_billing_same_as_shipping" key which doesn't exist.
("is_billing_same_as_shipping" actually exists but there's no "cart" key.)

Capture d’écran 2024-05-17 à 14 36 30

@rajeev-k-tomy
Copy link
Collaborator

@Jihad-orienteed I just tested this with a fresh installation of Magento 2.4.7 and the react checkout version 2.4.7. I could not reproduce the problem. Order is placed successfully.

So this could be a problem with your environment and setup of react checkout.

@rajeev-k-tomy
Copy link
Collaborator

@Man4x Thank you for reporting this problem. This will be covered in the pull request #373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants