Jump to content

Ajax Cart 1.4.8.2


Recommended Posts

If I enable ajax cart in prestashop 1.4.8.2

and try to add a product in the cart, prestashop show this error:

 

TECHNICAL ERROR: unable to add the product.

 

Details:

Error thrown: [object XMLHttpRequest]

Text status: error

 

I have try all solutions in the forum and in the forge but nothing ...

Link to comment
Share on other sites

was a problem with a variable, now i get this error:

 

 

{

"products": [

{

"id": 45,

"link": "http://www.betafertest.it/it/home-page/45-sadasd.html",

"quantity": 10,

"priceByLine": "3 240,00 €",

"name": "sadasd",

"price": "3 240,00 €",

"idCombination": 0,

"hasAttributes": false,

"hasCustomizedDatas": false,

"customizedDatas":[

]

}],

"discounts": [

],

"shippingCost": "8,00 €",

"wrappingCost": "0,00 €",

"nbTotalProducts": "10",

"total": "3 248,00 €",

"productTotal": "3 240,00 €",

"hasError" : false

}

 

i notice, when I change or reload page, the cart was updated

Link to comment
Share on other sites

You have to add in the hosts file of you OS the following line:

 

178.32.140.192 betafertest.it www.betafertest.it

 

If you want us to look at this, you're going to need to provide an actual URL. We can't do this sort of thing for an individual user's site.

 

-Mike

Link to comment
Share on other sites

Hello,

 

it happens that I have a web hosting, but no domain for that hosting. To be able to access the prestashop website with a browser, you need to manually add an (extra) entry in the hosts file to make the magic happen.

Link to comment
Share on other sites

  • 1 month later...

Can you post a URL for a product page and enable the Ajax cart, as well as turn on debugging in /config/config.inc.php line #29

 

http://www.kemcofood.net/en/6-flavors

 

I activated the Ajax cart and turned on the debugging.

 

Btw. I also thought that it could be a banners add I have activated on the page, but already tried deactivating it and it still doesn't work.

 

Thanks tomerg3 for your reply.

 

-Julio

Link to comment
Share on other sites

Hi Julio,

Hard to say what is wrong, it looks like the file http://www.kemcofood.net/cart.php is not returning a proper JSON response (an encoded array from the cart with information), as I see the following JS error

 

 

Timestamp: 8/9/2012 11:13:52 AM
Error: TypeError: jsonData is null
Source File: http://www.kemcofood.net/themes/prestashop_new/js/modules/blockcart2/ajax-cart.js
Line: 544

 

Did you make any changes to core files, or added override files?

Link to comment
Share on other sites

The only file I've added is the counter, but that's placed at the bottom of the footer.tpl. I've tried "fixing" the error writing the codes given in: http://www.prestasho...dd-the-product/

 

and other similar posts that recommended the same thing. other than that, I haven't made any changes.

 

:wacko:

 

-Julio

 

i just checked the file in classes folder and when I changed it, and gave the same error, i changed it back to the one it had.

 

 

Also, when I add a product I get the errors in the attached photo.

problem.bmp

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

  • 1 month later...
  • 9 months later...
×
×
  • Create New...