I would like to change the text of the error message that occurs on the checkout page when a customer hasn't filled in all the required fields. Currnetly, the message will display EVERY field that needs to be filled in, for example:
"Billing address is a required field.
Billing postal code is q required field.
Email address is a required field.
…"
I would like just ONE message that says "Please fill in the required field." or, if more than one field needs to be filled in "Please fill in the required fields."
Does anyone know how to dy this? My PHP is limited.
Thanks!
Best Answer
Updated Code:
Add this code in function.php file:
and add this code in notices\error.php file:
Hope it will resolve your concern :)