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

checkout stuck for customers without address #113

Closed
mveldhuizen opened this issue Aug 28, 2024 · 1 comment
Closed

checkout stuck for customers without address #113

mveldhuizen opened this issue Aug 28, 2024 · 1 comment

Comments

@mveldhuizen
Copy link

During checkout some customers can not check out their order. Proceed to checkout step 2 is not working.
This bug is happening since release 1.17.1.

During debugging I can see the following error:
TypeError: Cannot read properties of undefined (reading 'country_id')

See also:
Scherm­afbeelding 2024-08-28 om 14 08 50

After some research I have concluded there is an issue when the customer does not have an address saved in their account. We then get the normal guest checkout form but than this issue happens.

Customers with an address works fine. And when creating a new address during checkout this issue also is no problem.

I have tested the following solution and this seems to work, but i'm not sure if there are any use cases that I might have missed:

vendor/paazl/magento2-checkout-widget/view/frontend/web/js/checkout/action/set-shipping-information-mixin.js:58
Change:
if (isCustomerLogin) {

To:
if (isCustomerLogin && getAddressId() !== null) {

@Frank-Magmodules
Copy link
Collaborator

Hi @mveldhuizen, thank you for reporting this issue. I’m pleased to inform you that we’ve just released a new version of the plugin that addresses this problem. I’ll go ahead and close this issue for now, but please feel free to reopen it if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants