diff --git a/templates/emails/email-order-items.php b/templates/emails/email-order-items.php index 5dd8b3b97f2..9d407e9e99a 100644 --- a/templates/emails/email-order-items.php +++ b/templates/emails/email-order-items.php @@ -43,6 +43,8 @@ foreach ( $items as $item_id => $item ) : // allow other plugins to add additional product information here do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text ); + wc_display_item_meta( $item ); + if ( $show_download_links ) { wc_display_item_downloads( $item ); } diff --git a/templates/emails/plain/email-order-items.php b/templates/emails/plain/email-order-items.php index ac7c061b9be..3a5b20e3b00 100644 --- a/templates/emails/plain/email-order-items.php +++ b/templates/emails/plain/email-order-items.php @@ -31,6 +31,13 @@ foreach ( $items as $item_id => $item ) : echo ' = ' . $order->get_formatted_line_subtotal( $item ) . "\n"; // allow other plugins to add additional product information here do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text ); + echo strip_tags( wc_display_item_meta( $item, array( + 'before' => "\n- ", + 'separator' => "\n- ", + 'after' => "", + 'echo' => false, + 'autop' => false, + ) ) ); if ( $show_download_links ) { echo strip_tags( wc_display_item_downloads( $item, array( 'before' => "\n- ", diff --git a/templates/order/order-details-item.php b/templates/order/order-details-item.php index d7d75743746..906ed89d4e5 100644 --- a/templates/order/order-details-item.php +++ b/templates/order/order-details-item.php @@ -36,6 +36,7 @@ if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order ); + wc_display_item_meta( $item ); wc_display_item_downloads( $item ); do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order );