Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1303237

    Hello,

    When a customer orders on my site, I would like to force them to indicate a 10-digit telephone number (10 numbers, no more, no less), without spaces or dots between the numbers. I tried the “woocommerce checkout field” plugin but it does not work: when I click on “my account” then on modify addresses, I find the initial fields, without restrictions. Do you have a solution please?

    Thank you in advance,

    Have a good day,
    Audrey

    #1303548

    Hey laboiteapixels12,

    Thank you for the inquiry.

    You might be able to use the following hooks or filters (woocommerce_billing_fields & woocommerce_shipping_fields) to customize the checkout page and require users to input their phone numbers.

    // https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

    Code examples can be found within the documentation. You may need to override the billing_phone field and make it NOT optional.

    Best regards,
    Ismael

    #1303743

    Hi Ismael,

    Thanks for your reply, I will watch this carefully,

    Have a good day,

    Regards,
    Audrey

    #1304164

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.