October 22, 2024
Chicago 12, Melborne City, USA
jQuery

How to detect errors in the WooCommerce checkout form added with the checkout block?


I have a WooCommerce store that uses a checkout block. I want to track with Google Analytics what WooCommerce checkout fields are empty or are incorrectly filled in. The check should happen after a user clicks the "Pay now" button. How do I do this?

In the old shortcode checkout this was very easy with just a simple jQuery event listener, but the old solution doesn’t work with the block checkout.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video