_e('Product', 'woocommerce'); ?> </th> <th class="td" scope="col" style="text-align:left;"><?php _e('Quantity', 'woocommerce'); ?> </th> <th class="td" scope="col" style="text-align:left;"><?php _e('Price', 'woocommerce'); ?> </th> </tr> </thead> <tbody> <?php echo wc_get_email_order_items($order, array('show_sku' => $sent_to_admin, 'show_image' => false, 'image_size' => array(32, 32), 'plain_text' => $plain_text, 'sent_to_admin' => $sent_to_admin)); ?> </tbody> <tfoot> <?php if ($totals = $order->get_order_item_totals()) { $i = 0; foreach ($totals as $total) { $i++; ?> <tr> <th class="td" scope="row" colspan="2" style="text-align:left; <?php if ($i === 1) { echo 'border-top-width: 4px;'; } ?>
/** * Output items for display in html emails. * @deprecated 2.7.0 Moved to template functions. * @param array $args Items args. * @return string */ public function email_order_items_table($args = array()) { _deprecated_function('email_order_items_table', '2.7', 'wc_get_email_order_items'); return wc_get_email_order_items($this, $args); }