arshadb
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Change data validation rules of checkout input boxesI found the code line, anybody to help?
public static function is_phone( $phone ) { if ( 0 < strlen( trim( preg_replace( '/[\s\#0-9_\-\+\(\)]/', '', $phone ) ) ) ) { return false; }- This reply was modified 9 years, 6 months ago by arshadb.
Forum: Plugins
In reply to: [WooCommerce] Change data validation rules of checkout input boxes1-As a matter of user-friendliness, end-users must be able to fill forms with any script type they wish and we must avoid forcing them to change their default keyboard.
2-I didn’t install any third plugin to interrupt such procedure. it all backs to WooCommerce core files, I think. And Persian forums aren’t that much active on this matter.
3-No, Is clear it has nothing to do with the browser, the error message generates by codes.Forum: Fixing WordPress
In reply to: Manipulate data validation of phone number input boxI’ve have done with this topic “Change data validation rules of checkout input boxes”.
Thanks James :).Forum: Fixing WordPress
In reply to: Manipulate data validation of phone number input boxThen how shall I do that (transfer/delete and re-post)?
Forum: Fixing WordPress
In reply to: Manipulate data validation of phone number input boxWhat I’ve experienced so far all have been in WooCommerce pages,
I believe it is an error message that has been generated by a Jquery script which inherits CSS class “woocommerce-error” and the message is something such as “Your phone number is not valid” as my website runs Persian version of WordPress.Forum: Fixing WordPress
In reply to: Manipulate data validation of phone number input boxYou mean it has nothing to do with WordPress core files?
how can I transfer this question there?