Resolve undefined product notice in email-order-items.php

This commit is contained in:
Manos Psychogyiopoulos 2017-09-11 13:45:00 +03:00
parent 419244051e
commit d42fc93be7
1 changed files with 1 additions and 1 deletions

View File

@ -23,8 +23,8 @@ if ( ! defined( 'ABSPATH' ) ) {
$text_align = is_rtl() ? 'right' : 'left';
foreach ( $items as $item_id => $item ) :
$product = $item->get_product();
if ( apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
$product = $item->get_product();
?>
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
<td class="td" style="text-align:<?php echo $text_align; ?>; vertical-align:middle; border: 1px solid #eee; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; word-wrap:break-word;"><?php