Hello Andrea,
Could you please let me know what exactly do you mean by validation?
Do you want to check is the address correct or something else?
Best regards,
Marta
Hi Marta,
I mean that for example if a Customer enter in the Address field something like “blablabla” instead of “Via Dante 15” or “ab89cf” instead of “20045” in the Postcode field then when the Customer click on Next button an error should appear.
By now a Customer can enter whatever he wants in those fields and can place an order with a wrong address and shipping costs associated.
Is there some way to avoid that?
Regards,
Andrea
@gimmy88,
I think the best option for you will be using the WooCommerce action: woocommerce_checkout_process: https://docs.woocommerce.com/wc-apidocs/hook-docs.html
You can find a lot of information on the Internet about how to use it.
Best regards,
Marta