Jump to content

"Add to cart" animation sometimes doesn't work


Recommended Posts

I need some help here.

When I go on the Demo shop of Presta, and open a product page, for example: http://www.prestashop.com/demo/laptops/6-macbook.html

I click "Add to cart" from the product page, and the AJAX animation works - and adds it to the cart. However, on my site, this does not work - even with the default theme. It works in all of the other places, like in category or manufacturer view, but just not from the individual product pages.

What have I messed up? I have the latest version, 1.2.3, and I updated it as suggested...


Maybe this is related, in Safari Web Inspector, it gives me the error:

SyntaxError: Parse error
XHR finished loading: "http://www....com/cart.php?_=1252671889974&ajax=true&token=bbb15b22d8e369762e158e7eaeedb021"



This happens on every page, at around lines 90-100 (different for each page)

On the product page, there are two errors:

product.php:100   SyntaxError: Parse error
product.php:229   SyntaxError: Parse error



when i view the source of the page im viewing and put it into a text editor, on line 100 it says:

extraParams:{ajaxSearch:1,id_lang:}



and line 229:

var displayPrice = ;



how is that related?

Link to comment
Share on other sites

i tried the page in firefox, and it gives me:

Error: syntax error
Source File: http://www...com/product.php?id_product=2
Line: 100, Column: 38
Source Code:
   extraParams:{ajaxSearch:1,id_lang:}



and

Error: syntax error
Source File: http://www...com/product.php?id_product=2
Line: 229, Column: 19
Source Code:
var displayPrice = ; 



not sure what it means..

Link to comment
Share on other sites

when i click the "add button" and view what errors came out in firefox, it gives me:

Error: customizationFields is not defined
Source File: http://www...com/js/tools.js
Line: 112



and

Error: syntax error
Source File: http://www...com/order.php?ipa=6
Line: 92, Column: 38
Source Code:
   extraParams:{ajaxSearch:1,id_lang:}



any ideas?

Link to comment
Share on other sites

×
×
  • Create New...