return; } ?> <tr class="<?php echo esc_attr(apply_filters('woocommerce_order_item_class', 'order_item', $item, $order)); ?> "> <td class="product-name"> <?php $is_visible = $product && $product->is_visible(); $product_permalink = apply_filters('woocommerce_order_item_permalink', $is_visible ? $product->get_permalink($item) : '', $item, $order); echo apply_filters('woocommerce_order_item_name', $product_permalink ? sprintf('<a href="%s">%s</a>', $product_permalink, $item->get_name()) : $item->get_name(), $item, $is_visible); echo apply_filters('woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf('× %s', $item->get_quantity()) . '</strong>', $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); ?> </td> <td class="product-total"> <?php echo $order->get_formatted_line_subtotal($item); ?> </td> </tr> <?php if ($show_purchase_note && $purchase_note) { ?> <tr class="product-purchase-note"> <td colspan="3"><?php echo wpautop(do_shortcode(wp_kses_post($purchase_note)));
* @package WooCommerce/Templates/Emails/Plain * @version 2.7.0 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } foreach ($items as $item_id => $item) { if (apply_filters('woocommerce_order_item_visible', true, $item)) { $product = $item->get_product(); echo apply_filters('woocommerce_order_item_name', $item->get_name(), $item, false); if ($show_sku && $product->get_sku()) { echo ' (#' . $product->get_sku() . ')'; } echo ' X ' . apply_filters('woocommerce_email_order_item_quantity', $item->get_quantity(), $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- ", 'separator' => "\n- ", 'after' => "", 'echo' => false, 'show_url' => true))); } // allow other plugins to add additional product information here do_action('woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text); } // Note if ($show_purchase_note && ($purchase_note = get_post_meta($product->id, '_purchase_note', true))) { echo "\n" . do_shortcode(wp_kses_post($purchase_note)); } echo "\n\n"; }