cancel
Showing results for 
Search instead for 
Did you mean: 

AddtocartButton returning a json file in IE (Internet Explorer)

Former Member
0 Kudos

Hi guys,

I have a anormal situation here... in only some products, by clicking in "Buy" to add the product to the cart, instead of adding product to cart, the page returns a json file to save, preventing the customer from buying.

Follow the error:

Error image

This bug occurs only in IE (Internet Explorer). I have tested in many others browsers, and this error not occurs.

From what I could understand, by clicking the "buy" button the application sends a POST, and return is in JSON. Instead of returning the mount the popup, the application is understanding that it is to redirect to a JSON which ends up lowering the return as .json.

I believe the problem is in the return treatment.

Can anyone helps me debbuging this?

Thanks!!

former_member620692
Active Contributor
0 Kudos

Hi - I think your problem is the same as mentioned at https://stackoverflow.com/questions/6114360/ie-prompts-to-open-or-save-json-result-from-server and the accepted answer should work for you.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I confess that I didn't have many time to apply your suggestions, but i'am read the link steps and I no have idea to how implements theses suggestions, once my ContentType already with "application/json", and I tried with "text/html".

I no have or I don't see any way for implements a correction with Controller.

Do you have any other idea?