wzhao6898 Posted February 26, 2016 Share Posted February 26, 2016 An error pops up when a customer try to add an item to the cart (though the item ended up in the cart after refresh): link to the page: https://www.cyzcollection.com/men/55-cyz-men-s-100-cotton-knit-pajama-pants-lounge-pants.html Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data' responseText: get{"products":[{"id":55,"link":"https:\/\/www.cyzcollection.com\/men\/55-cyz-men-s-100-cotton-knit-pajama-pants-lounge-pants.html#\/size-s\/model_style-black","quantity":1,"image":"https:\/\/www.cyzcollection.com\/584-small_default\/cyz-men-s-100-cotton-knit-pajama-pants-lounge-pants.jpg","image_cart":"https:\/\/www.cyzcollection.com\/584-cart_default\/cyz-men-s-100-cotton-knit-pajama-pants-lounge-pants.jpg","priceByLine":"$14.99","name":"CYZ Men's 100% Cotton Knit Pajam...","price":"$14.99","price_float":14.99,"idCombination":743,"idAddressDelivery":0,"is_gift":false,"hasAttributes":true,"attributes":"S, Black","hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"$0.00","shippingCostFloat":0,"wrappingCost":"$0.00","nbTotalProducts":1,"total":"$14.99","productTotal":"$14.99","freeShipping":"$0.00","freeShippingFloat":0,"hasError":false,"crossSelling":false} The screenshot is attached, please help! Thanks in advance! David Link to comment Share on other sites More sharing options...
polosat Posted February 28, 2016 Share Posted February 28, 2016 You have some "get" in the start of responseText. I think it shouldn't be there.Maybe you edited something recently? Link to comment Share on other sites More sharing options...
wzhao6898 Posted March 1, 2016 Author Share Posted March 1, 2016 I noticed that too, but I haven't made any changes to the codes, only recently enabled SSL. Link to comment Share on other sites More sharing options...
wzhao6898 Posted March 1, 2016 Author Share Posted March 1, 2016 Well, I did somehow added "get" in front of a php block :-(, removing it, everything is fine now. 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