Jump to content

Add to cart 'parsererror'


HAIRWEBSHOP

Recommended Posts

Hallo,

If I want to add a product to my cart, It sometimes outputs the following error:

Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: Unexpected token F'
responseText:
Fatal error

It usually happens the first time, and then it disappears.

Can someone please helpe me figure this out?

Thank you in advance!

Link to comment
Share on other sites

  • 2 weeks later...

I created a cart rule for free shipping for orders over 35 euros for customers from the Netherlands.

I also added another cart rule for free shipping for order over 50 euros for our belgium customers.

 

I created two carriers, one for the Netherlands and another one for Belgium.

For each carrier, I have configured a custom zone.

 

When I add products to the cart with a total of below 35 euro, everything works fine.
However, when it reaches 35 euro or more, it will result into an error.

 

It seems that the error it is a result of that cart rule.

Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: Unexpected token F'
responseText:
Fatal error

If I close the error and refresh the page, the product has been added to the cart and free shipping is activated.

So free shipping is at least configured correctly.

 

Can someone please help me figure this out.
Thank you in advance.

Edited by HAIRWEBSHOP (see edit history)
Link to comment
Share on other sites

case needs inspection of website from browser developers console

there is no other way to solve it, because it is related to javascripts and it is necessary to debug it.

 

without access it will be REALLY HARD to say something more

Link to comment
Share on other sites

Thank you kindly for your reply vekia.

 

Yes I know that vekia, but one can't put online a webshop that isn't finished, right.
It will result in nasty SEO issues.

 

I deleted all rules and added them again, now the problem seems to be solved.
However, the cart rules are not working either. But that's another problem

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...