woocommerce-phone-validator
woocommerce-phone-validator copied to clipboard
Ability to add phone validation for woocommerce sign up
Hmm, this might be something nice, got called up by a folk on twitter in trying to modify it to do this🙂, and I’m like🧐 this might make a lot of sense. How Do i plan to do it?
- Make it optional: Makes sense because woocommerce doesn’t have the phone field on sign up by default.
- Adding a setting page: 😫😫 now i have to give it a settings page, i kinda preferred the plug n play ish, but looking on the bright side 😎, more flexibility. So where do i put the settings page? My guess is best under woocommerce settings. I’m open to suggestions though 🥶
Hi @Preciousomonze , I think it is time to create a setting page for the plugin under woocommerce ->setting whish contain :
- Drop down to set default country
- Checkbok option that lets admin to register phone fields and billing_country to the Register form of Woocommerce which will make auto change phone_fields flag when belling_country change 🧐
- input fields , where user can put a class Name of an other field from the frontend site to be replaced with phone validator field .
For exemple : if i have a custom field called Fax Number on checkout page , Or a phone field on Contact Form 7 or Elementor input field , etc....
User will able to put the class name of those field in the plugin setting , then they will be replaced by phone validator field.
this is a good idea if you can integrate it in the next update
Hi, i did think of that, but for now, i want to restrict it to just hooks, there are hooks to do some custom stuff.
after finishing up with v2.0, then i can start to think it, just trying to avoid so many conflicts.
Ok and version 2 will be contain the option that register phone_validator and billing_country to the Registration form of Woocommerce?? with making auto change phone_fields flag when belling_country change ??
Well, I'm lookingat that, if you want to contribute, you can pull request from branch "rogue-development" To avoid merge conflicts