I am trying to display the product variation description in the order detail page and in the order email. Following this example Woocommerce: Display Product Variation Description on Cart page it worked perfectly for the cart and also for the checkout. But it seems i can't find the right way of calling it for the order page.
This
$item = $cart_item['data'];
if(!empty($item) && $item->is_type( 'variation' ) ){
echo '<dl><dd>' . $item->get_variation_description() }
is not working, as it calls for the cart item data .. And the get_post_meta as suggested here WooCommerce displaying variable description after variable price is not working either.
$_variable_description = get_post_meta( $variation->id , '_variation_description', true );
I tried to place it in either the order-details-item.php and the class-wc-order-item-meta.php, and of course the email-order-details.php
Any suggestions? Thanks!