• Resolved zmayyem

    (@zmayyem)


    Hello , sir , please can you make the plugin work on my account page and on registration woocommerce form ?

    when i test it on both page , fo exemple to let customer change his phone number on his account dashboard (billing adresses and shipping adresses) the flags and dropdown country code did not work , even i try to change the Theme but same problem
    also if i change the billing country on my account page did not work too

    can you please fix the error and make it work on all pages that contain billin_phone fields and not only checkout page ! ?

    take a look to screenshot mabe you will understand the problem more !!

    https://ibb.co/VTGSk7y

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter zmayyem

    (@zmayyem)

    Any reply please ?? any syggetion how to fix the issue please ??

    Plugin Author Precious Omonzejele

    (@preciousomonze)

    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.

    Plugin Author Precious Omonzejele

    (@preciousomonze)

    Hi, @zmayyem here’s the fix. https://gist.github.com/Preciousomonze/e1f276a525e2bcd3f38de475cd5f62bf/#file-phone-validator-1-3-0-info-fix-md
    The next update will clear this bug ??
    Sorry for the problems caused. Hope this helps you.

    Plugin Author Precious Omonzejele

    (@preciousomonze)

    Resolved.

    Thread Starter zmayyem

    (@zmayyem)

    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, 1 month ago by zmayyem.
    Plugin Author Precious Omonzejele

    (@preciousomonze)

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not Working on My account Page’ is closed to new replies.