• Resolved rushdiey

    (@rushdiey)


    I editing this template
    email-customer-details.php

    I put this code
    <?php echo get_user_meta( get_current_user_id(), ‘billing_first_name’, true ) ?>

    It works well in email preview. Got value

    But when testing send email the value is 0

    So i have been thinking it get my current login_user id instead customer user id
    So what should i change to diplay it

Viewing 1 replies (of 1 total)
  • Plugin Author WP User Manager

    (@wpusermanager)

    Hey @rushdiey was this meant for WooCommerce plugin support?

    I think the $order is passed in the $fields array in that template, if you have $order you can then do $order->get_user_id() to get the customer’s ID

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce get usermeta’ is closed to new replies.