Bugfixes #89

Merged
bilal.catic merged 49 commits from development into master 2018-12-13 13:25:17 +01:00
Showing only changes of commit 8b5ea356e7 - Show all commits

View File

@@ -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() ) );
break;
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;
default:
$html .= apply_filters( 'woocommerce_admin_order_preview_line_item_column_' . sanitize_key( $column ), '', $item, $item_id, $order );