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