ostiepok Posted April 14, 2015 Share Posted April 14, 2015 Hi guys, i am developing an eshop in prestashop. I made some changes but iam not aware that i did something with cart, anyway, after adding a product to cart, ill get parseerror. This product will get added to cart as u can see by refreshing the page, but u wont get to next viewpage. U can try by yourself here -> http://emotivechampagne.sk/eshop/sk/home/10-benoit-lahaye-brut-nature.html Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: Unexpected token <' responseText: {"products":[{"id":14,"link":"http:\/\/emotivechampagne.sk\/eshop\/sk\/home\/14-laherte-freres-blanc-de-blancs-brut-nature.html","quantity":1,"image":"http:\/\/emotivechampagne.sk\/eshop\/37-home_default\/laherte-freres-blanc-de-blancs-brut-nature.jpg","image_cart":"http:\/\/emotivechampagne.sk\/eshop\/37-cart_default\/laherte-freres-blanc-de-blancs-brut-nature.jpg","priceByLine":"32,00 \u20ac","name":"Laherte Fr\u00e9res Blanc de Blancs Brut Nature","price":"32,00 \u20ac","price_float":32,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]},{"id":13,"link":"http:\/\/emotivechampagne.sk\/eshop\/sk\/home\/13-serge-mathieu-cuvee-prestige.html","quantity":1,"image":"http:\/\/emotivechampagne.sk\/eshop\/35-home_default\/serge-mathieu-cuvee-prestige.jpg","image_cart":"http:\/\/emotivechampagne.sk\/eshop\/35-cart_default\/serge-mathieu-cuvee-prestige.jpg","priceByLine":"29,00 \u20ac","name":"Serge Mathieu Cuve\u00e9 Prestige","price":"29,00 \u20ac","price_float":29,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]},{"id":9,"link":"http:\/\/emotivechampagne.sk\/eshop\/sk\/home\/9-serge-mathieu-2005.html","quantity":7,"image":"http:\/\/emotivechampagne.sk\/eshop\/36-home_default\/serge-mathieu-2005.jpg","image_cart":"http:\/\/emotivechampagne.sk\/eshop\/36-cart_default\/serge-mathieu-2005.jpg","priceByLine":"175,00 \u20ac","name":"Serge Mathieu Extra Brut","price":"175,00 \u20ac","price_float":175,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]},{"id":10,"link":"http:\/\/emotivechampagne.sk\/eshop\/sk\/home\/10-benoit-lahaye-brut-nature.html","quantity":4,"image":"http:\/\/emotivechampagne.sk\/eshop\/32-home_default\/benoit-lahaye-brut-nature.jpg","image_cart":"http:\/\/emotivechampagne.sk\/eshop\/32-cart_default\/benoit-lahaye-brut-nature.jpg","priceByLine":"140,00 \u20ac","name":"Benoit Lahaye Brut Nature Grand Cru","price":"140,00 \u20ac","price_float":140,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"7,00 \u20ac","shippingCostFloat":7,"wrappingCost":"0,00 \u20ac","nbTotalProducts":13,"total":"383,00 \u20ac","productTotal":"376,00 \u20ac","freeShipping":"0,00 \u20ac","freeShippingFloat":0,"hasError":false,"crossSelling":" I am new to prestashop, so iam asking only for directions, where to look for an error, what files can be corrupted etc. I would appreciate any help. Thanks Link to comment Share on other sites More sharing options...
ostiepok Posted April 14, 2015 Author Share Posted April 14, 2015 (edited) Hi guys, i am developing an eshop in prestashop. I made some changes but iam not aware that i did something with cart, anyway, after adding a product to cart, ill get parseerror. This product will get added to cart as u can see by refreshing the page, but u wont get to next viewpage. U can try by yourself here -> http://emotivechampagne.sk/eshop/sk/home/10-benoit-lahaye-brut-nature.html Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: Unexpected token <' responseText: {"products":[{"id":14,"link":"http:\/\/emotivechampagne.sk\/eshop\/sk\/home\/14-laherte-freres-blanc-de-blancs-brut-nature.html","quantity":1,"image":"http:\/\/emotivechampagne.sk\/eshop\/37-home_default\/laherte-freres-blanc-de-blancs-brut-nature.jpg","image_cart":"http:\/\/emotivechampagne.sk\/eshop\/37-cart_default\/laherte-freres-blanc-de-blancs-brut-nature.jpg","priceByLine":"32,00 \u20ac","name":"Laherte Fr\u00e9res Blanc de Blancs Brut Nature","price":"32,00 \u20ac","price_float":32,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]},{"id":13,"link":"http:\/\/emotivechampagne.sk\/eshop\/sk\/home\/13-serge-mathieu-cuvee-prestige.html","quantity":1,"image":"http:\/\/emotivechampagne.sk\/eshop\/35-home_default\/serge-mathieu-cuvee-prestige.jpg","image_cart":"http:\/\/emotivechampagne.sk\/eshop\/35-cart_default\/serge-mathieu-cuvee-prestige.jpg","priceByLine":"29,00 \u20ac","name":"Serge Mathieu Cuve\u00e9 Prestige","price":"29,00 \u20ac","price_float":29,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]},{"id":9,"link":"http:\/\/emotivechampagne.sk\/eshop\/sk\/home\/9-serge-mathieu-2005.html","quantity":7,"image":"http:\/\/emotivechampagne.sk\/eshop\/36-home_default\/serge-mathieu-2005.jpg","image_cart":"http:\/\/emotivechampagne.sk\/eshop\/36-cart_default\/serge-mathieu-2005.jpg","priceByLine":"175,00 \u20ac","name":"Serge Mathieu Extra Brut","price":"175,00 \u20ac","price_float":175,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]},{"id":10,"link":"http:\/\/emotivechampagne.sk\/eshop\/sk\/home\/10-benoit-lahaye-brut-nature.html","quantity":4,"image":"http:\/\/emotivechampagne.sk\/eshop\/32-home_default\/benoit-lahaye-brut-nature.jpg","image_cart":"http:\/\/emotivechampagne.sk\/eshop\/32-cart_default\/benoit-lahaye-brut-nature.jpg","priceByLine":"140,00 \u20ac","name":"Benoit Lahaye Brut Nature Grand Cru","price":"140,00 \u20ac","price_float":140,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"7,00 \u20ac","shippingCostFloat":7,"wrappingCost":"0,00 \u20ac","nbTotalProducts":13,"total":"383,00 \u20ac","productTotal":"376,00 \u20ac","freeShipping":"0,00 \u20ac","freeShippingFloat":0,"hasError":false,"crossSelling":" I am new to prestashop, so iam asking only for directions, where to look for an error, what files can be corrupted etc. I would appreciate any help. Thanks Ive solved this by disabling ajax cart But i still get errors when changing quantity of products or removing product from cart, a lot of ppl seems to had the same problem so sry for posting something thats already out there -:> https://www.prestashop.com/forums/topic/103625-technical-error-unable-to-save-update-quantity-in-prestashop-cart/page-3 . U can delete the post i guess, thanx and sry again Edited April 14, 2015 by ostiepok (see edit history) Link to comment Share on other sites More sharing options...
sandipchandela Posted April 15, 2015 Share Posted April 15, 2015 You need to disable changes from Force SSL to all pages to false. Under preferences -> General. Link to comment Share on other sites More sharing options...
ostiepok Posted April 15, 2015 Author Share Posted April 15, 2015 You need to disable changes from Force SSL to all pages to false. Under preferences -> General. I did and still get the same errors :/ Link to comment Share on other sites More sharing options...
sandipchandela Posted April 15, 2015 Share Posted April 15, 2015 Can you remove or disable top section. There is an error because your site top section carousal conflicting with PS cart jquery. Link to comment Share on other sites More sharing options...
sandipchandela Posted April 15, 2015 Share Posted April 15, 2015 (edited) <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>emotivechampagne.sk</title> <link href="http://emotivechampagne.sk/eshop/css/bootstrap.min.css" rel="stylesheet"> <link href="http://emotivechampagne.sk/eshop/css/half-slider.css" rel="stylesheet"> </head><body> <nav class="navbar navbar-inverse " role="navigation" style="border: 0px white; !important min-height:100ox !important; text-align: center; background-color: white; margin-bottom: 0px; !important"> <div class="container" > <img src="http://emotivechampagne.sk/eshop/img/logo.jpg" height="100px"> </div> </nav> <header id="myCarousel" class="carousel slide carousel-fade" style="padding: 0px; !important"> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="item active"> <div class="fill" style="background-image:url('http://emotivechampagne.sk/eshop/img/1.jpg');"></div> </div> <div class="item"> <div class="fill" style="background-image:url('http://emotivechampagne.sk/eshop/img/2.jpg');"></div> </div> <div class="item"> <div class="fill" style="background-image:url('http://emotivechampagne.sk/eshop/img/3.jpg');"></div> </div> </div> <a class="left carousel-control" href="#myCarousel" data-slide="prev"> <span class="icon-prev"></span> </a> <a class="right carousel-control" href="#myCarousel" data-slide="next"> <span class="icon-next"></span> </a> </header> <div class="container"> <div class="row"> <div class="col-lg-12" style="padding:10px; color: #614126; text-align: top; font-family: Times New Roman; !important"> <p style="text-align: center; font-size: 32px;">Champagne pre tých, ktorí milujú víno.</p> <table width="100%" style="font-size:15px; !important"> <tr><td width="20%" style="vertical-align: top; !important"> Ponúkame pravé pestovateľské šampanské zo všetkých hlavných oblastí Champagne.</td> <td width="20%" style="vertical-align: top; !important"> Ponúkame vína od malých vinárov, ktorí spracovávajú hrozno výlučne z vlastných viníc. Ich prístup je opačný ako u veľkých domov, ktoré takmer všetko hrozno nakupujú a ich snahou je vytvoriť šampanské s identitou značky. Pestovateľské šampanské je naopak o prirodzenosti a o vernosti svojmu terroir. </td> <td width="20%" style="vertical-align: top; !important"> Všetky naše vína sú od autentických vinárov, pre ktorých je na prvom mieste rešpekt k prírode, úcta k viniču a láska k vínu. Ide o malé produkcie pár tisíc fliaš, často v prísnejších podmienkach ako BIO. Pestovateľské šampanské nie sú vhodné na firemné večierky. Sú to vzácne a seriózne vína, ktoré sa najlepšie vychutnávajú v intímnej spoločnosti a z väčších pohárov, aby mohli rozvinúť celý svoj charakter.</td> <td width="20%" style="vertical-align: top; !important"> Všetky vína, ktoré ponúkame, vyberáme osobne priamo v Champagne a osobne ich privážame na Slovensko, aby sme zaručili čo najšetrnejšiu prepravu. Osobný vzťah s vinárom je dôležitý aj pre samotné získanie vín, pretože pri týchto vinároch dopyt často mnohokrát prevyšuje ponuku. </td> <td width="20%" style="vertical-align: top; !important"> Naše šampanské sú vzácne a jedinečné, ale predovšetkým sú to veľké vína. Sú topresne tie šampanské, ktoré dokážu zmierniť sklamania a robiť okamihy výnimočnými. </td> </tr> </table> <p style="text-align: center; margin: 0px 0px 0px 0px; !important"><a style="text-decoration : none; color : #614126;" target="_blank" href="https://www.facebook.com/pages/Pinot/322550947888057?fref=ts">Takmer všetky naše vína môžete ochutnať aj v <b>Pinote u Bruna.</b></a></p> <p style="text-align: center; margin: 0px 0px 0px 0px; !important"><img src="http://www.emotivechampagne.sk/eshop/img/black_triangle.gif"></p> </div> </div> <br /><br /><br /><br /><br /> <!-- Footer <footer> <div class="row"> <div class="col-lg-12"> <p>Copyright © Your Website 2014</p> </div></div> </footer> --> </div> <!-- /.container --> <script src="http://emotivechampagne.sk/eshop/js/jquery.js"></script> <script src="http://emotivechampagne.sk/eshop/js/bootstrap.min.js"></script> <script> $('.carousel').carousel({ interval: 13000 //changes the speed }) </script> Edited April 15, 2015 by sandipchandela (see edit history) Link to comment Share on other sites More sharing options...
ostiepok Posted April 15, 2015 Author Share Posted April 15, 2015 Can you remove or disable top section. There is an error because your site top section carousal conflicting with PS cart jquery. Yes u are right, i did not noticed this. Thanks for the help ! Link to comment Share on other sites More sharing options...
s.piekutowski Posted September 13, 2015 Share Posted September 13, 2015 Hi, I have the same problem - almost exacly the same. What did you do ???? Link to comment Share on other sites More sharing options...
smahnaqvi Posted February 19, 2016 Share Posted February 19, 2016 I have this error: Fatal error: Uncaught exception 'Exception' with message 'Forbidden chars in cookie' in /home/pkapplia/public_html/classes/Cookie.php:176 Stack trace: #0 /home/pkapplia/public_html/modules/ganalytics/ganalytics.php(841): CookieCore->__set('ga_cart', 'a:1:{i:355;a:11...') #1 /home/pkapplia/public_html/classes/Hook.php(587): Ganalytics->hookActionCartSave(Array) #2 /home/pkapplia/public_html/classes/Hook.php(542): HookCore::coreCallHook(Object(Ganalytics), 'hookactionCartS...', Array) #3 /home/pkapplia/public_html/classes/Cart.php(214): HookCore::exec('actionCartSave') #4 /home/pkapplia/public_html/classes/Cart.php(1071): CartCore->update() #5 /home/pkapplia/public_html/controllers/front/CartController.php(293): CartCore->updateQty(1, 355, 0, 0, 'up', 0) #6 /home/pkapplia/public_html/controllers/front/CartController.php(73): CartControllerCore->processChangeProductInCart() #7 /home/pkapplia/public_html/classes/controller/Controller.php(178): CartControllerCore->postProcess() #8 /home/pkapplia/public_html/classes/Dispatcher. in /home/pkapplia/public_html/classes/Cookie.php on line 176 Link to comment Share on other sites More sharing options...
sandipchandela Posted February 23, 2016 Share Posted February 23, 2016 I have this error: Fatal error: Uncaught exception 'Exception' with message 'Forbidden chars in cookie' in /home/pkapplia/public_html/classes/Cookie.php:176 Stack trace: #0 /home/pkapplia/public_html/modules/ganalytics/ganalytics.php(841): CookieCore->__set('ga_cart', 'a:1:{i:355;a:11...') #1 /home/pkapplia/public_html/classes/Hook.php(587): Ganalytics->hookActionCartSave(Array) #2 /home/pkapplia/public_html/classes/Hook.php(542): HookCore::coreCallHook(Object(Ganalytics), 'hookactionCartS...', Array) #3 /home/pkapplia/public_html/classes/Cart.php(214): HookCore::exec('actionCartSave') #4 /home/pkapplia/public_html/classes/Cart.php(1071): CartCore->update() #5 /home/pkapplia/public_html/controllers/front/CartController.php(293): CartCore->updateQty(1, 355, 0, 0, 'up', 0) #6 /home/pkapplia/public_html/controllers/front/CartController.php(73): CartControllerCore->processChangeProductInCart() #7 /home/pkapplia/public_html/classes/controller/Controller.php(178): CartControllerCore->postProcess() #8 /home/pkapplia/public_html/classes/Dispatcher. in /home/pkapplia/public_html/classes/Cookie.php on line 176 Disable "ganalytics " module Link to comment Share on other sites More sharing options...
smahnaqvi Posted February 23, 2016 Share Posted February 23, 2016 Disable "ganalytics " module Thank you. That worked but what about GA reports after disabling the module? Link to comment Share on other sites More sharing options...
sandipchandela Posted February 27, 2016 Share Posted February 27, 2016 Which ps version u r using? Have you installed any other modules related to reports? Try to clear cache folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now