cancel
Showing results for 
Search instead for 
Did you mean: 

wwindow.checkout is undefined

wwindow.checkout is undefined

Hello,
When I do a add to cart, nothing happend.
I have this error in the console:
*TypeError: window.checkout is undefined*

For: images.js & minicart.js

Thank you for the help.

4 REPLIES 4

Re: wwindow.checkout is undefined

Hello @alain_picard 

 

can you please provide more information for the same?

 

which js and which line 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: wwindow.checkout is undefined

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

Re: wwindow.checkout is undefined

Hello @alain_picard 

 

 

check this line SyntaxError: expected expression, got ';'   on my product pages and check that is some expression issue.

 

Seems like some comma issue, you need to check your theme code and try to check with default luma theme so you know your theme issue.

 

Hope it will help you.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: wwindow.checkout is undefined

Hello, I can see the issue seem to come from: minicart.phtml at line 42 or so...
I get this error on all pages...

 

    <script>
    window.checkout = <?php /* @escapeNotVerified */ echo \Zend_Json::encode($block->getConfig()); ?>;
    </script>