Any reply please ?? any syggetion how to fix the issue please ??
Hello, for now, it’s only featured on Checkout and Myaccount page.
But from the screenshot, i’m seeing a JS error which is weird. seems like a bug.
Thanks for this, i will test, and come up with a solution shortly.
Half Fixed !!
before that thanks for your reply and your quick issue fix !!
but still there is an other little problem
the phone fields on registration form did not auto select CountryFlag when billing_country change, on checkout page and on logged-in myaccount page work well
but on the registration form when i select billing country the flag of phone input did not changing
this is the link of the login / register page
https://yaladates.megacloud.xyz/my-account/ ( Please take a look to understand the problem )
and i used a custom hook to display billing_country and billing_phone fields on the woocommerce registration form
this is the code that i used to display fields on registration form
function wooc_extra_register_fields() {
wp_enqueue_script( 'wc-country-select' );
woocommerce_form_field( 'billing_country', array(
'type' => 'country',
'class' => array('country_select'),
//'label' => __('Country'),
'placeholder' => __('Choose your country.'),
'required' => true,
'clear' => true
));
woocommerce_form_field( 'billing_phone', array(
'type' => 'tel',
'required' => true,
//'label' => 'Phone',
'clear' => true
),
( isset($_POST['billing_phone']) ? $_POST['billing_phone'] : '' )
);
}
add_action( 'woocommerce_register_form_start', 'wooc_extra_register_fields' );
please can you try to fix this problem too !!? and thanks for your support
-
This reply was modified 4 years, 8 months ago by
zmayyem.
hello, this isn’t an actual “Problem” because the plugin doesn’t work for register section for now.
Only Checkout and My-account > billing page 😅
Here’s the follow up issue here, for future update.
https://github.com/Preciousomonze/woocommerce-phone-validator/issues/3