Resolve undefined product notice in email-order-items.php
This commit is contained in:
parent
419244051e
commit
d42fc93be7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue