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

Cannot read property 'code' of undefined #3

Open
ghost opened this issue Sep 20, 2018 · 3 comments
Open

Cannot read property 'code' of undefined #3

ghost opened this issue Sep 20, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2018

After update Magento to it latest version 2.2.6 I've got the following issue:

Preconditions

  1. Magento 2.2.6
  2. PHP 7.1
  3. MariaDB 10.2

Steps to reproduce

  1. Add an item into the cart.
  2. Open Chrome devtools console.
  3. Go to checkout

Expected result

  1. That checkout page doesn't display any console error.

Actual result

  1. The following (down below) console error is appearing in devtools console.
    Uncaught TypeError: Cannot read property 'code' of undefined at UiClass.initialize (/en_US/Magento_Checkout/js/view/progress-bar.js:31:93)

This wasn't happening in v2.2.5
I've updated Mageplaza - OSC to latest build 2.6.1 ( https://www.mageplaza.com/changelog/m2-one-step-checkout.txt ) but doesn't fix the issue.

@ghost
Copy link
Author

ghost commented Sep 20, 2018

Hi Guys, I've found that that issue is related to the code in file /Mageplaza/Osc/view/frontend/web/js/view/shipping.js
line 97 -> stepNavigator.steps.removeAll();

You can see that in new release there're a lot of changes in cart and checkout: https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6CE.html

@vetshopdeveloper
Copy link

Can confirm same issue as well

@datvm231
Copy link

Hello,

One Step Checkout is a paid extension so we have a support system here:
https://www.mageplaza.com/contact.html
Please send your problems and our technical team will help you solve it.

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