Jump to content

Add to cart not working


atomicrebel

Recommended Posts

When i click add to cart on http://blowupdesigns.tk, product is not added and follow error message shows up, any ideia how to solve?  

Thanks

Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: Unexpected token '<', "responseText:
{"products":[],"discounts":[],"shippingCost":"0\u20ac","shippingCostFloat":0,"wrappingCost":"0\u20ac","nbTotalProducts":0,"total":"0\u20ac","productTotal":"0\u20ac","freeShipping":"0\u20ac","freeShippingFloat":0,"free_ship":true,"isVirtualCart":false,"hasError":false,"crossSelling":""}

 

Captura de Ecrã (241).png

Link to comment
Share on other sites

  • 1 month later...

Hi,

The error message specifically mentions a 'parsererror', which usually occurs when the JSON response from the server is not properly formatted and cannot be parsed correctly by the client-side JavaScript code.

Use your browser's developer tools to inspect the network activity when you click "Add to Cart." Look for the request being made to the server and the response received. Check the response content and see if it matches the expected JSON format.

Verify that the AJAX request being sent to add the product to the cart is correctly formed and includes all the necessary parameters.

Check the error logs on the server to see if there are any specific error messages related to the issue.

Thanks!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...