• Hello!
    Thanks for the great plugin!

    I have a question about user/customer details:
    We don’t use customer details from woocommerce – we need only the logged-in user details.

    I have disabled all user detail-fileds from woocommerce but i want to use fileds like first_name last_name an user_email from registerd user – how can i do that?

    When i use the shortcodes nothing will displayed because the user-woocommerce fields are empty.

    MAN THANKS!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andreas.kastl

    (@andreaskastl)

    Hello again!

    I have solved this problem with a script which update Billing and Shipping Infos when user registers.

    But {user_email} won’t be printed in email.
    I can see the correct email in checkout info but inside the email the field {user_email} is alwys empty.

    Do you have an idea what I’m doing wrong?

    MANY THANKS!

    Thread Starter andreas.kastl

    (@andreaskastl)

    Hi,

    for tests i changed utils.php from your plugin an added a new shortcode with billing_email and that works – crazy.

    Sure this option is not perfect because on the next update my additional code disappers.

    So i have added this code snipped in my childs functions.php:

    add_action ('woocommerce_email_before_order_table', 'get_user_details', 10, 4);
    function get_user_details ( $order, $sent_to_admin, $plain_text, $email ) {
        global $current_user;
        get_currentuserinfo();
        $user_billing_email = $current_user->billing_email;  
        echo $user_billing_email;
    }
    

    It works but it’s strange that the normal user_email won’t displayed in email text.

    Plugin Support mivtt

    (@mivtt)

    Hi,

    Thank you for reporting us this problem.

    We will check the shortcode {user_email} and inform you soon. Thank you for your detection and waiting.

    Best regards.

    Plugin Support mivtt

    (@mivtt)

    Hi,

    Thank you for your waiting.
    Please update the latest version of this plugin that fixed the shortcode {user_email}

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Logged-in user details’ is closed to new replies.