Jump to content

Impossible to add the product to the cart


Recommended Posts

My Prestashop was working fine and now when I try to add a product to the cart I get this error message:

 

 

Impossible to add the product to the cart.

 

textStatus: 'parsererror'

errorThrown: 'SyntaxError: JSON Parse error: Unrecognized token '<''

responseText:

<script type="text/javascript">

 

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-37653354-1']);

_gaq.push(['_setDomainName', 'watertech-hawaii.com']);

_gaq.push(['_setAllowLinker', true]);

_gaq.push(['_trackPageview']);

 

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

})();

 

</script>

 

{

"products": [

{

"id": 2,

"link": "http://watertech-hawaii.com/catalog/index.php?id_product=2&controller=product",

"quantity": 1,

"priceByLine": "$49.99",

"name": "Pool Blaster...",

"price": "$49.99",

"price_float": "49.99",

"idCombination": 0,

"idAddressDelivery": 0,

"hasAttributes": false,

"hasCustomizedDatas": false,

 

"customizedDatas":[

]

 

 

}],

 

"discounts": [

],

 

"shippingCost": "$20.00",

"shippingCostFloat": "20",

"wrappingCost": "$0.00",

"nbTotalProducts": "1",

"total": "$69.99",

"productTotal": "$49.99",

 

"hasError" : false

 

}

 

 

Any idea what happened? I haven't a clue what went wrong.

Link to comment
Share on other sites

×
×
  • Create New...