0

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.

4
  • Have you removed the minicart? Commented 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 Commented 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> Commented Feb 12, 2020 at 19:32
  • Does this solve your problem? github.com/magento/magento2/issues/1458#issuecomment-268773483
    – fredden
    Commented Sep 26, 2021 at 13:39

0

Your Answer

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

Browse other questions tagged or ask your own question.