Hi @superdrake89
Have you contacted the WooCommerce developer for this issue? This is a Woo customization.
Regards,
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?
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,
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
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,
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
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,
-
This reply was modified 4 years, 6 months ago by
Champ Camba.
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,