This topic has 14 replies, 3 voices, and was last updated 6 years, 4 months ago ago by Olga Barlow
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
Hello,
Please describe your problem in details.
Also, I can’t login to your dashboard http://prntscr.com/hp0p1n
Thanks in advance.
Regards
woocommerce login was not working so, I used theme my login plugin to make it working.
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
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
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
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.
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
I have renewed the support for 6 months. what is the use of it ?
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
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
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
Thank you so much. I hope this will help.
You are welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up