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 shipping methods keep loading when inapplicable method shown for disabled country #870

Open
unlocdavid opened this issue Oct 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@unlocdavid
Copy link

Plugin version

4.17.0

Magento version

2.4.7-p3

PHP version

8.2

What went wrong?

The sipping methods in the checkout keeps loading when there is a shipping method active that is disabled for a country and the option 'Show Method if Not Applicable' is set to true.

Reproduction steps

  1. Enable a shipping method like Free shipping and limit it to a certain country. Make sure the option 'Show Method if Not Applicable' is set to true.
  2. Go to the checkout and use an address with a different country than the country restricted shipping method.
  3. Observe the loading spinner keeps spinning.

Relevant log output

// Browser console:

checkout.js:155 Uncaught TypeError: Cannot read properties of null (reading 'indexOf')
    at checkout.js:155:39
    at Array.find (<anonymous>)
    at Object.findOriginalRateByCarrierCode (checkout.js:154:28)
    at checkout.js:279:22
    at Array.filter (<anonymous>)
    at updateAllowedShippingMethods (checkout.js:278:64)
    at ko.subscription._callback (checkout.js:95:9)
    at Function.notifySubscribers (knockout.js:1401:50)
    at Function.evaluateImmediate_CallReadWithDependencyDetection (knockout.js:2310:68)
    at Function.evaluateImmediate (knockout.js:2253:40)

Additional context

No response

@unlocdavid unlocdavid added the bug Something isn't working label Oct 30, 2024
@myparcelnl myparcelnl deleted a comment Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant