woocommerce-phone-validator icon indicating copy to clipboard operation
woocommerce-phone-validator copied to clipboard

Ability to add phone validation for woocommerce sign up

Open Preciousomonze opened this issue 5 years ago • 6 comments

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 🥶

Preciousomonze avatar Jun 05 '20 20:06 Preciousomonze

Hi @Preciousomonze , I think it is time to create a setting page for the plugin under woocommerce ->setting whish contain :

  1. Drop down to set default country
  2. 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 🧐

zmayyem avatar Oct 02 '20 21:10 zmayyem

  1. 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

zmayyem avatar Oct 03 '20 13:10 zmayyem

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.

Preciousomonze avatar Oct 04 '20 16:10 Preciousomonze

after finishing up with v2.0, then i can start to think it, just trying to avoid so many conflicts.

Preciousomonze avatar Oct 04 '20 16:10 Preciousomonze

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 ??

zmayyem avatar Oct 04 '20 22:10 zmayyem

Well, I'm lookingat that, if you want to contribute, you can pull request from branch "rogue-development" To avoid merge conflicts

Preciousomonze avatar Oct 06 '20 11:10 Preciousomonze