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
19 stars 10 forks source link

Requiring email for checkout backend validation can/should be removed #46

Open lith-imad opened 2 years ago

lith-imad commented 2 years ago

Hi Precious,

I think the check for requiring email adress for checkout backend validation should be removed, I know it's not very common.. but I work with clients that doesn't require user's email address to complete a payment and rely on phone number only. https://github.com/Preciousomonze/woocommerce-phone-validator/blob/ca4466d160aee65c4f61a5b3216d9373ff163093/public/class-woocommerce-checkout.php#L94

Preciousomonze commented 2 years ago

Hmm, you do have a point. I sincerely do not remember why i was also validating the email 🥲