Block based checkout validation message keeps forever
-
Hello, we are using you example in adding an additional checkout field as the example here https://developer.woocommerce.com/docs/cart-and-checkout-additional-checkout-fields/#7-a-full-example but the validation message that shows on the top is keeping forever, no matter if the field is validated or not. Once it appears, is never disappearing.
To repdoduce, add this example to any WooCommerce using BBC and put an invalid value, once the validation occurs and the error is sent, there is no way for the top message to disappear.
The problem is when the code reaches this:
$errors->add( 'invalid_gov_id', 'Please ensure your government ID matches the correct format.' );
We don’t understand if this is a WooCommerce bug or what. We discovered trying to validate VAT fields here https://www.ads-software.com/support/topic/calculo-de-impuestos/
Thank you.
- You must be logged in to reply to this topic.