• Resolved superdrake89

    (@superdrake89)


    hello, on this site you have to register with information customized to the customer’s needs and they change if you are a Private or Reseller. Would it be possible to receive all this information when the customer makes a purchase? Woocommerce shows me only the defaul information such as Name and Mail but I can’t personalize the mail of the new order.
    thanks a lot

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @superdrake89

    Have you contacted the WooCommerce developer for this issue? This is a Woo customization.

    Regards,

    Thread Starter superdrake89

    (@superdrake89)

    Thanks for the rusposta, but woocommerce replied that the information should be able to receive from the ultimate member plugin, but I don’t know the hooks to have to insert inside the mial to be able to take them, do you know how?

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @superdrake89

    Could you please provide a screenshot of the email notification that you’re referring to? You can upload the screenshot via imgur.com and then share the image URL here so we can review it.

    Regards,

    Thread Starter superdrake89

    (@superdrake89)

    Those with the arrow are the personalized info created by ultimatemember and that I would like to see in the mail of the new order

    View post on imgur.com

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @superdrake89

    Did you mean you want to add the submitted profile details in Ultimate Member to the WooCommerce’s New Order email template? Submitted data can be found in WP Admin > Users > hover on the user in the table and see “Info”. Click that link and it will show the user-submitted data.

    Regards,

    Thread Starter superdrake89

    (@superdrake89)

    Yes, I know this but my customer would like to have all the info directly in the new order email for his convenience, is it possible? going to woocommerce settings there is a section that says “additional content” in the email template, but I don’t know what to write in order to add those custom fields taken from the subscription form, I tried as in the picture but it doesn’t work

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @superdrake89

    You can try this code snippet:

    add_action( "woocommerce_email_after_order_table", "um_111921_woo_email_after_order_table", 10, 1);
    function um_111921_woo_email_after_order_table( $order ) {
        if( ! function_exists("um_fetch_user") ) return;
        $user_id = get_current_user_id();
        um_fetch_user( $user_id );
        echo '<p><strong>First Name :</strong>'. um_user("first_name") .'</p>';
        echo '<p><strong>Last Name :</strong>'. um_user("last_name") .'</p>';
    
    }

    The above code will add the first name and last name after the order table. You can add more field values just using the field keys in the function um_user().

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @superdrake89

    …Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Personalized email’ is closed to new replies.