Including Custom Fields in order email
-
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
<?php
$orderidno = $order->id;
$prodmetaa = get_post_meta($orderidno, “Phone_number” , True);
echo $prodmetaa;
?>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 .
- The topic ‘Including Custom Fields in order email’ is closed to new replies.