bernierf1 Posted September 6, 2022 Share Posted September 6, 2022 Hello, I have a problem that appeared this week. When adding an item to the cart, the following error message appears in a small window (see attachment): < Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: Unexpected token >. If I deactivate the AJAX Shopping Cart in the Shopping Cart module (Prestashop 1.6.1.24), the problem no longer appears but I am immediately redirected to the shopping cart during an article. Previously, a pop-up appeared offering to continue shopping or go to the cart. Do you have a solution for me please? Thanks a lot! Here are the error messages TECHNICAL ERROR: unable to save update quantity Details: Error thrown: [object Object] Text status: parsererror Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: Unexpected token '<', " {"products":[{"id":48815,"link":"https:\/\/lapetitemarguerite.ca\/boutique\/garcons\/48815-chandail.html","quantity":1,"image":"https:\/\/lapetitemarguerite.ca\/boutique\/96677-home_default\/chandail.jpg","image_cart":"https:\/\/lapetitemarguerite.ca\/boutique\/96677-cart_default\/chandail.jpg","priceByLine":"$10.00","name":"Chandail","price":"$10.00","price_float":10,"idCombination":0,"idAddressDelivery":903,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]},{"id":48813,"link":"https:\/\/lapetitemarguerite.ca\/boutique\/garcons\/48813-camisole.html","quantity":1,"image":"https:\/\/lapetitemarguerite.ca\/boutique\/96675-home_default\/camisole.jpg","image_cart":"https:\/\/lapetitemarguerite.ca\/boutique\/96675-cart_default\/camisole.jpg","priceByLine":"$4.00","name":"Camisole","price":"$4.00","price_float":4,"idCombination":0,"idAddressDelivery":903,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]},{"id":49065,"link":"https:\/\/lapetitemarguerite.ca\/boutique\/filles\/49065-chandail.html","quantity":1,"image":"https:\/\/lapetitemarguerite.ca\/boutique\/96953-home_default\/chandail.jpg","image_cart":"https:\/\/lapetitemarguerite.ca\/boutique\/96953-cart_default\/chandail.jpg","priceByLine":"$10.00","name":"Chandail","price":"$10.00","price_float":10,"idCombination":0,"idAddressDelivery":903,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"$0.00","shippingCostFloat":0,"wrappingCost":"$0.00","nbTotalProducts":3,"total":"$24.00","productTotal":"$24.00","freeShipping":"$0.00","freeShippingFloat":0,"hasError":false,"crossSelling":false} Could you help me please? Link to comment Share on other sites More sharing options...
ComGrafPL Posted September 6, 2022 Share Posted September 6, 2022 Try the solutions from here: 2 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