WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

Logging XHR Requests

October 31, 2020 by Will Leave a Comment

If your WooCommerce site is having problems at checkout, but you’re not really sure what is behind it (i.e. steps to reproduce have not been identified) logging XHR requests (and JavaScript errors) from the checkout page can provide some insight into what is happening.

This technique would require that you had a listener setup somewhere to receive the data and process it. That is outside the scope of this article.

Injecting something like the following JavaScript perhaps using the conditional is_checkout would do the trick

Filed Under: Troubleshooting, WooCommerce

Leave a Reply Cancel reply

You must be registered and logged in to post a comment.

© 2023 ยท WooCommerce, Remote Work & Other Fancy Stuff · Epstein didn't kill himself