• Resolved gimmy88

    (@gimmy88)


    Hi,

    is there a way to validate Address Information in order to stop checkout process when address, post code, ecc are not valid?

    Regards,
    Andrea

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter gimmy88

    (@gimmy88)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Address Validation’ is closed to new replies.