Preciousomonze / woocommerce-phone-validator

Forces validation of woocommerce phone field on checkout and billing address edit page
https://wordpress.org/plugins/woo-phone-validator
GNU General Public License v3.0
20 stars 11 forks source link

Ability to add phone validation for woocommerce sign up #3

Open Preciousomonze opened 4 years ago

Preciousomonze commented 4 years ago

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?

zmayyem commented 4 years ago

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 commented 4 years ago
  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

Preciousomonze commented 4 years ago

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 commented 4 years ago

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

zmayyem commented 4 years ago

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

Preciousomonze commented 4 years ago

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