Jump to content

AJAX shopping cart no longer works


Recommended Posts

I am using a modified Likaweb Prestashop_new2 theme. Things worked ok after the update to 1.5.2 but seemed not totally stable so I decided to replace a few files with the PS 1.5.2 originals. This concerned order-address.js, order-opc.js, order-opc.ptpl and order-opc-new-account.tpl.

 

On my test computer this worked fine but on my production computer this led to a Javascript error. So I switched the files back. Unfortunately the Javascript error stayed. Switching off all caching didn't help.

 

The error starts as follows:

 

Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: JSON.parse: unexpected character'responseText:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl"><head>

 

What follows looks like the html code of a complete page. See also the attached image.

 

For the moment I have switched off the Ajax functionality of my webshop but I would like to find a real solution.

BTW: with AJAX enabled the product is added internally to the cart, but you don't see it nor the animation and you need to refresh the page to see that it was added.

post-302430-0-22447100-1351540347_thumb.jpg

post-302430-0-22447100-1351540347_thumb.jpg

Edited by musicmaster (see edit history)
Link to comment
Share on other sites

  • 5 months later...
×
×
  • Create New...