marketyellow3 Posted October 4, 2019 Share Posted October 4, 2019 (edited) Hello, I am currently working on my new Prestashop site with the latest version 1.7.6.1 but now i discovered that the add to cart button doesn't work on the product page it self or the quick view page. In the debug modus it doesn't give a error, is there someone else who also encountered this problem? Thank you for replying and have a great weekend! Kind regards, Peter Edited October 7, 2019 by marketyellow3 (see edit history) Link to comment Share on other sites More sharing options...
Rhobur Posted October 5, 2019 Share Posted October 5, 2019 Check the console tab of the browser's inspect tools and see what javascript errors are there. Link to comment Share on other sites More sharing options...
marketyellow3 Posted October 7, 2019 Author Share Posted October 7, 2019 (edited) Goodmorning, This is the SyntaxError i get in the console: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data bottom-88588d81.js:411:108 paginateComments http://autoonderdelenexpres.nl/themes/laber_complex_home5/assets/cache/bottom-88588d81.js:411 u http://autoonderdelenexpres.nl/themes/laber_complex_home5/assets/cache/bottom-88588d81.js:39 fireWith http://autoonderdelenexpres.nl/themes/laber_complex_home5/assets/cache/bottom-88588d81.js:39 S http://autoonderdelenexpres.nl/themes/laber_complex_home5/assets/cache/bottom-88588d81.js:39 t http://autoonderdelenexpres.nl/themes/laber_complex_home5/assets/cache/bottom-88588d81.js:39 Edited October 7, 2019 by marketyellow3 (see edit history) Link to comment Share on other sites More sharing options...
Rhobur Posted October 7, 2019 Share Posted October 7, 2019 It clearly has a problem with JSON data sent by a module probably. Disable the JS caching in backoffice so there may be a more explanatory JS file name. Anyway, you'll have to dig into that JS file at that specific line and debug to find out which module has this issue. Link to comment Share on other sites More sharing options...
marketyellow3 Posted October 7, 2019 Author Share Posted October 7, 2019 Okey thank you for your time and help Link to comment Share on other sites More sharing options...
marketyellow3 Posted October 7, 2019 Author Share Posted October 7, 2019 It was the product comment module from Prestashop so i disabled this module because i don't really need it, the error is now gone but the button still doesn't work. Already cleared the cache in the backoffice and the cache on my own pc. I also tried to disable ajax-shopping cart but still no result. Is it maybe smarter to reinstall Prestashop or do you think it is fixable? Thank you for the help! Link to comment Share on other sites More sharing options...
Rhobur Posted October 7, 2019 Share Posted October 7, 2019 I suppose you tested with several browsers and you don't have Cloudflare or similar to cache things. So, no JS errors in console and no frontend errors with debug activated? Link to comment Share on other sites More sharing options...
marketyellow3 Posted October 7, 2019 Author Share Posted October 7, 2019 Yes i tried on Chrome, Firefox and Microsoft edge also on my mobile phone to be sure.. and i don't have Cloudfare or similar cache things. And also no JS erorrs in the console with even debug modus on. Could it be a theme issue? i am not using the default one of Prestashop Link to comment Share on other sites More sharing options...
marketyellow3 Posted October 7, 2019 Author Share Posted October 7, 2019 3 minutes ago, marketyellow3 said: Yes i tried on Chrome, Firefox and Microsoft edge also on my mobile phone to be sure.. and i don't have Cloudfare or similar cache things. And also no JS erorrs in the console with even debug modus on. Could it be a theme issue? i am not using the default one of Prestashop I tried to switch to the default theme and the button works there so i have to figure out now how to fix the add to cart button on the theme i am using. Link to comment Share on other sites More sharing options...
marketyellow3 Posted October 7, 2019 Author Share Posted October 7, 2019 The problem is solved, i reinstalled the theme and it works perfect now thank you for ur time! Link to comment Share on other sites More sharing options...
namanjohnson101 Posted October 7, 2019 Share Posted October 7, 2019 (edited) Well... For us the issue was this: We had a chat-function on our page. It seems that the js on the chat-function was overriding the “add to cart”-button. The “add to cart”-button was functioning on our front page. Then the chat was set in motion, and that seems to have deactivated the js on the “add to cart”-button further “down” on our page. The solution for us was to remove the chat-function from the store… Ideally, I would like to have the chat there as well, but now we have the chat on our main page and a functioning web store as well. So I guess the quick answer is to check if there are different plugins or modules that do not work well together… Edited January 4, 2020 by namanjohnson101 (see edit history) Link to comment Share on other sites More sharing options...
ronil catalonia Posted September 28, 2020 Share Posted September 28, 2020 hello marketyellow3. did you fixed it by reupload the theme in prestashop?in newbie in prestashop. i have a BIG problem. in you select/ or click the product. no add to cart display. literally. NO ADD TO CART. please help. im so hopeless for these problem. i cant find any answer in google. i hope theirs and expert here who can help my problem. check my site. http://www2.gotindahan.com Link to comment Share on other sites More sharing options...
Anna Prestashop Posted May 21, 2021 Share Posted May 21, 2021 Hello, i have the same problem. How does you resolve? Link to comment Share on other sites More sharing options...
Hamed AGHAEIAN Posted July 26, 2023 Share Posted July 26, 2023 Hello dears, add to cart is not work in my website. http://arsalan.com.tr/glass/tr/cam-kavanoz/22-250-cc-kapaksiz-cam-kavanoz-1-palet.html Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now