Gipielle Posted June 19, 2012 Share Posted June 19, 2012 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 More sharing options...
Mike Kranzler Posted June 19, 2012 Share Posted June 19, 2012 Hi Gipielle, Please try the suggestions posted here and let me know if any of those help resolve your issue. -Mike Link to comment Share on other sites More sharing options...
Gipielle Posted June 20, 2012 Author Share Posted June 20, 2012 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 More sharing options...
Mike Kranzler Posted June 20, 2012 Share Posted June 20, 2012 Can you please post a link where we can see this for ourselves? -Mike Link to comment Share on other sites More sharing options...
Gipielle Posted June 26, 2012 Author Share Posted June 26, 2012 You have to add in the hosts file of you OS the following line: 178.32.140.192 betafertest.it www.betafertest.it Link to comment Share on other sites More sharing options...
Mike Kranzler Posted June 26, 2012 Share Posted June 26, 2012 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 More sharing options...
Gipielle Posted June 26, 2012 Author Share Posted June 26, 2012 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 More sharing options...
Julio UCME Posted August 8, 2012 Share Posted August 8, 2012 (edited) The same thing is happening to me. I tried changing to the default theme, but the same error appears. Deactivating the AJAX Cart is the only way it works. My store is 1.4.8.2. I'll appreciate the help. -Julio And the template I'm using is Prestashop_new Edited August 8, 2012 by Julio UCME (see edit history) Link to comment Share on other sites More sharing options...
tomerg3 Posted August 8, 2012 Share Posted August 8, 2012 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 Link to comment Share on other sites More sharing options...
Julio UCME Posted August 9, 2012 Share Posted August 9, 2012 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 More sharing options...
tomerg3 Posted August 9, 2012 Share Posted August 9, 2012 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 More sharing options...
Julio UCME Posted August 9, 2012 Share Posted August 9, 2012 (edited) 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. -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 August 9, 2012 by Julio UCME (see edit history) Link to comment Share on other sites More sharing options...
Julio UCME Posted August 13, 2012 Share Posted August 13, 2012 Could it be that the file is missing something? Link to comment Share on other sites More sharing options...
fernandokerber Posted August 20, 2012 Share Posted August 20, 2012 i have the same problem!! i tried everything... but i cant fix that (((((( here is my shop: http://67.222.18.10/...iago/prestashop Link to comment Share on other sites More sharing options...
Ggaivg Posted October 3, 2012 Share Posted October 3, 2012 I'm getting the same error on 1.4.8.2. However, it occurs very sporadically. I am not able to duplicate it but just see it maybe every 50th time I add something to the cart. Any ideas what this could be? Link to comment Share on other sites More sharing options...
tomerg3 Posted October 3, 2012 Share Posted October 3, 2012 Try to look at the firebug console in Firefox,when you get that alert, you should see the response from the cart.php file, and it should give a clue as to what's wrong. Link to comment Share on other sites More sharing options...
Julio UCME Posted August 2, 2013 Share Posted August 2, 2013 For me it started to work fine after I upgraded to 1.4.11. Att. Julio Link to comment Share on other sites More sharing options...
Recommended Posts