Ajax request not working

Highlighted
New Member
1 0 0

I have done some customization on the cart page. I try to call jquery ajax before check out button click, and it is working fine, but sometimes my ajax call is not working. 

 

Is it possible to create log when ajax calls not work or any idea how can I debug this issue?

0 Likes
Highlighted
Excursionist
10 0 4

Can you post the URL or code?

 

Sounds like the checkout form is being submitted before your code has run. If that's the case, you can preventDefault() and submit the form after your code has run.

If my answer was helpful then please Like and Accept Solution :)
0 Likes