Hey guys, I can see I have come along quite late to the conversation.
I am trying to print product attributes in the admin-new-order email.
For example I have an attribute “Colour” with each product having a single value for this attribute, e.g. “Blue”. I want this to be printed in the admin-new-order email.
So far I have tried adding this code to email-order-items.php:
echo "\n" . "Test: " . get_post_meta($_product->id,'attribute_pa_colour',true);
and have also tried your code above, but with no success so far.
Please can you help me?
Many thanks
Ben