id ) . '&action=edit' ) : '';
$thumbnail = $_product ? apply_filters( 'woocommerce_admin_order_item_thumbnail', $_product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item ) : '';
$tax_data = empty( $legacy_order ) && wc_tax_enabled() ? maybe_unserialize( isset( $item['line_tax_data'] ) ? $item['line_tax_data'] : '' ) : false;
$item_total = ( isset( $item['line_total'] ) ) ? esc_attr( wc_format_localized_price( $item['line_total'] ) ) : '';
$item_subtotal = ( isset( $item['line_subtotal'] ) ) ? esc_attr( wc_format_localized_price( $item['line_subtotal'] ) ) : '';
?>
' . wp_kses_post( $thumbnail ) . '';
?>
|
' . esc_html( $item['name'] ) . '' : ' ' . esc_html( $item['name'] ) . ' ';
if ( $_product && $_product->get_sku() ) {
echo '' . __( 'SKU:', 'woocommerce' ) . ' ' . esc_html( $_product->get_sku() ) . ' ';
}
if ( ! empty( $item['variation_id'] ) ) {
echo '' . __( 'Variation ID:', 'woocommerce' ) . ' ';
if ( ! empty( $item['variation_id'] ) && 'product_variation' === get_post_type( $item['variation_id'] ) ) {
echo esc_html( $item['variation_id'] );
} elseif ( ! empty( $item['variation_id'] ) ) {
echo esc_html( $item['variation_id'] ) . ' (' . __( 'No longer exists', 'woocommerce' ) . ')';
}
echo ' ';
}
?>
|
get_item_total( $item, false, true ), array( 'currency' => $order->get_order_currency() ) );
if ( isset( $item['line_subtotal'] ) && $item['line_subtotal'] != $item['line_total'] ) {
echo '-' . wc_price( wc_format_decimal( $order->get_item_subtotal( $item, false, false ) - $order->get_item_total( $item, false, false ), '' ), array( 'currency' => $order->get_order_currency() ) ) . '';
}
}
?>
|
× ' . ( isset( $item['qty'] ) ? esc_html( $item['qty'] ) : '1' );
if ( $refunded_qty = $order->get_qty_refunded_for_item( $item_id ) ) {
echo '' . ( $refunded_qty * -1 ) . '';
}
?>
|
$order->get_order_currency() ) );
}
if ( isset( $item['line_subtotal'] ) && $item['line_subtotal'] !== $item['line_total'] ) {
echo '-' . wc_price( wc_format_decimal( $item['line_subtotal'] - $item['line_total'], '' ), array( 'currency' => $order->get_order_currency() ) ) . '';
}
if ( $refunded = $order->get_total_refunded_for_item( $item_id ) ) {
echo '' . wc_price( $refunded, array( 'currency' => $order->get_order_currency() ) ) . '';
}
?>
|
$order->get_order_currency() ) );
} else {
echo '–';
}
if ( isset( $item['line_subtotal'] ) && $item['line_subtotal'] !== $item['line_total'] ) {
echo '-' . wc_price( wc_round_tax_total( $tax_item_subtotal - $tax_item_total ), array( 'currency' => $order->get_order_currency() ) ) . '';
}
if ( $refunded = $order->get_tax_refunded_for_item( $item_id, $tax_item_id ) ) {
echo '' . wc_price( $refunded, array( 'currency' => $order->get_order_currency() ) ) . '';
}
?>
|
|