User needs to enter login details twice - by josephsternwork@gmail.com

This topic has 14 replies, 3 voices, and was last updated 6 years, 4 months ago ago by Olga Barlow

  • Avatar: josephsternwork@gmail.com
    josephsternwork@gmail.com
    Participant
    December 17, 2017 at 11:03

    When I tried to login or register using email address as a customer, I need to enter data twice. I tried disabling all the plugin but didn’t work.

    When i tried changing theme to twentyseventeen it worked fine.

    Can you please help me to fix this issue.

    Thanks

    Please, contact administrator
    for this information.
    13 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 18, 2017 at 11:56

    Hello,

    Please describe your problem in details.
    Also, I can’t login to your dashboard http://prntscr.com/hp0p1n
    Thanks in advance.

    Regards

    Avatar: josephsternwork@gmail.com
    josephsternwork@gmail.com
    Participant
    December 18, 2017 at 15:09

    woocommerce login was not working so, I used theme my login plugin to make it working.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 18, 2017 at 18:58

    Hello,

    I have enabled official WooCommerce theme – Storefront – and see the same problem https://gyazo.com/e92b8e23a21d1691dffdee882be9b265 It means that your problem with default My account page is not related to our theme. Contact WC plugin support to fix this.

    Regards

    Avatar: josephsternwork@gmail.com
    josephsternwork@gmail.com
    Participant
    December 19, 2017 at 02:44

    Ok, Anyway, I fixed that issue with the tml login.

    I have one more question. How can I receive first name and last name from facebook register.

    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 19, 2017 at 16:42

    Hello,

    FB does not have first name and last name, it has only one field – name, for example http://prntscr.com/hpmmfe
    And this parameter is included in API response of the FB that we have. But we use default WC plugin function for the user registration wc_create_new_customer and it accepts only 3 parameters: email, username and password (you can check the default WC registration http://prntscr.com/hpmp4a ) , that’s why the fourth parameter, that we get from the FB API, is not used.
    If you use another function to register an account you may try to use it for the FB registration and change etheme_process_facebook_callback function according to your needs (xstore/framework/theme-functions.php, lines 1254-1293).

    Regards

    Avatar: josephsternwork@gmail.com
    josephsternwork@gmail.com
    Participant
    December 19, 2017 at 17:28
     if( is_wp_error( $customer ) ) {
                if( isset( $customer->errors['registration-error-email-exists'] ) ) {
                    wc_set_customer_auth_cookie( $user->ID );
                }
            } else {
                wc_set_customer_auth_cookie( $customer );
    			
            }
    		// Setting the meta
    		update_user_meta( $customer, 'billing_first_name', $info['first_name'] );
    		update_user_meta( $customer, 'billing_last_name', $info['last_name'] );
            wc_add_notice( sprintf( __( 'You are now logged in as <strong>%s</strong>', 'xstore' ), $user->display_name ) );
    
            remove_filter('pre_option_woocommerce_registration_generate_username', 'etheme_generate_username_option', 10);

    I added meta code. But it is not working. Can you please help.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 19, 2017 at 17:36

    Hello,

    Sorry, but unfortunately we are unable to provide support for customizations under our Support Policy. You may contact WPKraken team if you need help with additional customization.

    Regards

    Avatar: josephsternwork@gmail.com
    josephsternwork@gmail.com
    Participant
    December 19, 2017 at 18:11

    I have renewed the support for 6 months. what is the use of it ?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 19, 2017 at 19:42

    Hello,

    What is included in item support you can find here https://themeforest.net/page/item_support_policy
    There also you’ll find the information what is not included in support http://prntscr.com/hppgzu

    Regards

    Avatar: josephsternwork@gmail.com
    josephsternwork@gmail.com
    Participant
    December 20, 2017 at 02:55

    It is not a big customization though, I think it is just a two line code. Can you please let me know where should i update the meta for first name and last name, I will add code myself.

    How can i use that facebook login functions on child theme?

    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 20, 2017 at 11:59

    Hello,

    Remove your code and try the following http://prntscr.com/hpyndw
    update_user_meta( $customer, 'billing_first_name', $info['name'] );
    And you’ll be able to add it either for the first_name or last_name
    If you want more complicated way and want both first_name and last_name then in xstore/framework/thirdparty/vendor/opauth/facebook/FacebookStrategy.php you may try https://prnt.sc/hpytjw and in place where you made changes use the following http://prntscr.com/hpyuzu

    I hope this will be your point to the right direction. If you need more detailed instructions I recommend to contact customization team.

    Regards

    Avatar: josephsternwork@gmail.com
    josephsternwork@gmail.com
    Participant
    December 21, 2017 at 03:14

    Thank you so much. I hope this will help.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 21, 2017 at 09:16

    You are welcome!

    Regards

  • Viewing 14 results - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.