When I do an add to cart, nothing happens. I have this error in the console: TypeError: window.checkout is undefined

For: images.js & minicart.js

Thank you for your help.

  • Have you removed the minicart? Feb 11, 2020 at 15:31
  • No...Hello, Here's the errors I have in the console... - SyntaxError: expected expression, got ';' on my product pages - TypeError: window.checkout is undefined. images.js 15:13 - TypeError: window.checkout is undefined. authentication-popup.js 26:13 - Error:status 400. price-widget 1279:17 Feb 11, 2020 at 19:45
  • As I can see, the issue seem from minicart.phtml at line 42 or so. the render is like this on my home or product pages.... <script> window.checkout = ; </script> Feb 12, 2020 at 19:32

1 Answer 1


Does this solve your problem? https://github.com/magento/magento2/issues/1458#issuecomment-268773483

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.