get_order_item_totals() ) foreach ( $totals as $total ) : ?> get_items())>0) : foreach($order->get_items() as $item) : $_product = get_product( $item['variation_id'] ? $item['variation_id'] : $item['product_id'] ); echo ' '; // Show any purchase notes if ($order->status=='completed' || $order->status=='processing') : if ($purchase_note = get_post_meta( $_product->id, '_purchase_note', true)) : echo ''; endif; endif; endforeach; endif; do_action( 'woocommerce_order_items_table', $order ); ?>
'; echo '' . $item['name'] . ' × ' . $item['qty'] . ''; $item_meta = new WC_Order_Item_Meta( $item['item_meta'] ); $item_meta->display(); if ( $_product->exists() && $_product->is_downloadable() && $order->is_download_permitted() ) : $download_file_urls = $order->get_downloadable_file_urls( $item['product_id'], $item['variation_id'], $item ); foreach ( $download_file_urls as $i => $download_file_url ) : echo '
' . sprintf( __( 'Download file %s →', 'woocommerce' ), ( count( $download_file_urls ) > 1 ? $i + 1 : '' ) ) . ''; endforeach; endif; echo '
' . $order->get_formatted_line_subtotal( $item ) . '
' . apply_filters('the_content', $purchase_note) . '
status=='completed' ) : ?>

billing_email) echo '
'.__( 'Email:', 'woocommerce' ).'
'.$order->billing_email.'
'; if ($order->billing_phone) echo '
'.__( 'Telephone:', 'woocommerce' ).'
'.$order->billing_phone.'
'; ?>

get_formatted_billing_address()) _e( 'N/A', 'woocommerce' ); else echo $order->get_formatted_billing_address(); ?>

get_formatted_shipping_address()) _e( 'N/A', 'woocommerce' ); else echo $order->get_formatted_shipping_address(); ?>