Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

US Phone number validation on checkout

$
0
0

Replies: 0

Hi – great plugin. I have an issue that with US set as default country when a user types in an invalid/incomplete number such as (818) 967-12 the checkout form is submitted and no error generated. If I edit class-woocommerce-account.php and comment out these lines – then it works fine – it appears woo doesn’t handle these errors correctly :

99 if( !is_numeric( str_replace( ‘ ‘, ”, $bil_phone ) ) ) // WC will handle this, so no need to report errors
100 return;


Viewing all articles
Browse latest Browse all 59525

Trending Articles