I'm trying to include a custom field in the email that is sent to customers upon purchase. I added a custom field "Phone_number" into the all of the product pages.
I've tried including
$orderidno = $order->id;
$prodmetaa = get_post_meta($orderidno, "Phone_number" , True);
In the order email template, but haven't had any success. Has anyone done anything like this before or have any Idea how I could accomplish this .