Jump to content

[SOLVED]Javascript error when adding a product to cart from homepage


Recommended Posts

 

I got strange issue that when Im trying to add a product to cart from homepage, the following error is displayed:

"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:" Also the cart is always empty when you go to homepage or category pages.

 

BUT when you close the child window and try to add again to cart, IT WORKS!

Also it works properly from product page. But on category page the same problem exists.

my shop is http://eatclever.sg

 

 

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

  • 3 months later...

 

 

I got strange issue that when Im trying to add a product to cart from homepage, the following error is displayed:

"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:" Also the cart is always empty when you go to homepage or category pages.

 

BUT when you close the child window and try to add again to cart, IT WORKS!

Also it works properly from product page. But on category page the same problem exists.

my shop is http://eatclever.sg

 

 

 

Hey! can you explain how you resolved the issue??

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