get_product();
$product_link = $product ? admin_url( 'post.php?post=' . $item->get_product_id() . '&action=edit' ) : '';
$thumbnail = $product ? apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item ) : '';
$row_class = apply_filters( 'woocommerce_admin_html_order_item_class', ! empty( $class ) ? $class : '', $item, $order );
?>
' . wp_kses_post( $thumbnail ) . ''; ?>
|
' . esc_html( $item->get_name() ) . '' : ' ' . esc_html( $item->get_name() ) . ' ';
if ( $product && $product->get_sku() ) {
echo '' . esc_html__( 'SKU:', 'woocommerce' ) . ' ' . esc_html( $product->get_sku() ) . ' ';
}
if ( $item->get_variation_id() ) {
echo '' . esc_html__( 'Variation ID:', 'woocommerce' ) . ' ';
if ( 'product_variation' === get_post_type( $item->get_variation_id() ) ) {
echo esc_html( $item->get_variation_id() );
} else {
/* translators: %s: variation id */
printf( esc_html__( '%s (No longer exists)', 'woocommerce' ), $item->get_variation_id() );
}
echo ' ';
}
?>
|
get_item_total( $item, false, true ), array( 'currency' => $order->get_currency() ) );
if ( $item->get_subtotal() !== $item->get_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_currency() ) ) . '';
}
?>
|
× ' . esc_html( $item->get_quantity() );
if ( $refunded_qty = $order->get_qty_refunded_for_item( $item_id ) ) {
echo '-' . ( $refunded_qty * -1 ) . '';
}
?>
|
get_total(), array( 'currency' => $order->get_currency() ) );
if ( $item->get_subtotal() !== $item->get_total() ) {
echo '-' . wc_price( wc_format_decimal( $item->get_subtotal() - $item->get_total(), '' ), array( 'currency' => $order->get_currency() ) ) . '';
}
if ( $refunded = $order->get_total_refunded_for_item( $item_id ) ) {
echo '-' . wc_price( $refunded, array( 'currency' => $order->get_currency() ) ) . '';
}
?>
|
get_taxes() ) && wc_tax_enabled() ) {
foreach ( $order_taxes as $tax_item ) {
$tax_item_id = $tax_item->get_rate_id();
$tax_item_total = isset( $tax_data['total'][ $tax_item_id ] ) ? $tax_data['total'][ $tax_item_id ] : '';
$tax_item_subtotal = isset( $tax_data['subtotal'][ $tax_item_id ] ) ? $tax_data['subtotal'][ $tax_item_id ] : '';
?>
$order->get_currency() ) );
} else {
echo '–';
}
if ( $item->get_subtotal() !== $item->get_total() ) {
if ( '' === $tax_item_total ) {
echo '–';
} else {
echo '-' . wc_price( wc_round_tax_total( $tax_item_subtotal - $tax_item_total ), array( 'currency' => $order->get_currency() ) ) . '';
}
}
if ( $refunded = $order->get_tax_refunded_for_item( $item_id, $tax_item_id ) ) {
echo '-' . wc_price( $refunded, array( 'currency' => $order->get_currency() ) ) . '';
}
?>
|
|