marcsteph Posted September 7, 2015 Share Posted September 7, 2015 Bonjour, j'ai l'erreur suivante quand je met un produit dans le panier: Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 739 of the JSON data' merci de votre aide Link to comment Share on other sites More sharing options...
tuk66 Posted September 7, 2015 Share Posted September 7, 2015 Quelle URL? What URL? Link to comment Share on other sites More sharing options...
marcsteph Posted September 7, 2015 Author Share Posted September 7, 2015 http://www.livresebooks.com Link to comment Share on other sites More sharing options...
tuk66 Posted September 7, 2015 Share Posted September 7, 2015 Quel est ce code à la fin de la réponse? What is this code at the end of the response? <script type="text/javascript" src="http://www.unmilliondevisiteurs.com/um.js?nid=8971"></script> Link to comment Share on other sites More sharing options...
marcsteph Posted September 7, 2015 Author Share Posted September 7, 2015 voila tous ce qu'il me retourne Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 739 of the JSON data'responseText:{"products":[{"id":1,"link":"http:\/\/livresebooks.com\/fr\/accueil\/1-about-edmond-pack.html","quantity":2,"image":"http:\/\/livresebooks.com\/2-home_default\/about-edmond-pack.jpg","image_cart":"http:\/\/livresebooks.com\/2-cart_default\/about-edmond-pack.jpg","priceByLine":"1.80 \u20ac","name":"About Edmond Pack","price":"1.80 \u20ac","price_float":1.8,"idCombination":0,"idAddressDelivery":5,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"0.00 \u20ac","shippingCostFloat":0,"wrappingCost":"0.00 \u20ac","nbTotalProducts":2,"total":"1.80 \u20ac","productTotal":"1.80 \u20ac","freeShipping":"0.00 \u20ac","freeShippingFloat":0,"hasError":false,"crossSelling":""} Link to comment Share on other sites More sharing options...
tuk66 Posted September 7, 2015 Share Posted September 7, 2015 Ceci est la réponse POST (voir la fin): This is the POST response (see the end): {"products":[{"id":1,"link":"http:\/\/livresebooks.com\/fr\/accueil\/1-about-edmond-pack.html","quantity":3,"image":"http:\/\/livresebooks.com\/2-home_default\/about-edmond-pack.jpg","image_cart":"http:\/\/livresebooks.com\/2-cart_default\/about-edmond-pack.jpg","priceByLine":"2.70 \u20ac","name":"About Edmond Pack","price":"2.70 \u20ac","price_float":2.7,"idCombination":0,"idAddressDelivery":0,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"0.00 \u20ac","shippingCostFloat":0,"wrappingCost":"0.00 \u20ac","nbTotalProducts":3,"total":"2.70 \u20ac","productTotal":"2.70 \u20ac","freeShipping":"0.00 \u20ac","freeShippingFloat":0,"hasError":false,"crossSelling":""}<center><script type="text/javascript" src="http://www.unmilliondevisiteurs.com/um.js?nid=8971"></script></center> Link to comment Share on other sites More sharing options...
marcsteph Posted September 7, 2015 Author Share Posted September 7, 2015 ou est l'erreur? Link to comment Share on other sites More sharing options...
tuk66 Posted September 7, 2015 Share Posted September 7, 2015 Bien sûr, ce ne sont pas la réponse JSON valide. Sure, it isn't valid JSON response. 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