show item prices in order preview
This commit is contained in:
@@ -505,7 +505,14 @@ class WC_Admin_List_Table_Orders extends Wiaas_Custom_WC_Admin_List_Table {
|
|||||||
$html .= wc_price( $item->get_total_tax(), array( 'currency' => $order->get_currency() ) );
|
$html .= wc_price( $item->get_total_tax(), array( 'currency' => $order->get_currency() ) );
|
||||||
break;
|
break;
|
||||||
case 'total':
|
case 'total':
|
||||||
$html .= wc_price( $item->get_total(), array( 'currency' => $order->get_currency() ) );
|
$item_price = $item->get_meta('_wiaas_product_price');
|
||||||
|
if ($item_price){
|
||||||
|
$total_price = $item->get_quantity() * floatval($item_price);
|
||||||
|
}else{
|
||||||
|
$total_price = $item->get_total();
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= wc_price( $total_price , array( 'currency' => $order->get_currency() ) );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$html .= apply_filters( 'woocommerce_admin_order_preview_line_item_column_' . sanitize_key( $column ), '', $item, $item_id, $order );
|
$html .= apply_filters( 'woocommerce_admin_order_preview_line_item_column_' . sanitize_key( $column ), '', $item, $item_id, $order );
|
||||||
|
|||||||
Reference in New Issue
Block a user