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
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.
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
Hi Ismael,
Thanks for your reply, I will watch this carefully,
Have a good day,
Regards,
Audrey