add order payment details to order preview
This commit is contained in:
@@ -358,7 +358,7 @@ class WC_Admin_List_Table_Orders extends Wiaas_Custom_WC_Admin_List_Table {
|
||||
<div class="wc-order-preview-address">
|
||||
<h2><?php esc_html_e( 'Billing details', 'woocommerce' ); ?></h2>
|
||||
{{{ data.formatted_billing_address }}}
|
||||
|
||||
|
||||
<# if ( data.data.billing.email ) { #>
|
||||
<strong><?php esc_html_e( 'Email', 'woocommerce' ); ?></strong>
|
||||
<a href="mailto:{{ data.data.billing.email }}">{{ data.data.billing.email }}</a>
|
||||
@@ -505,14 +505,7 @@ 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':
|
||||
$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() ) );
|
||||
$html .= wc_price( $item->get_total(), array( 'currency' => $order->get_currency() ) );
|
||||
break;
|
||||
default:
|
||||
$html .= apply_filters( 'woocommerce_admin_order_preview_line_item_column_' . sanitize_key( $column ), '', $item, $item_id, $order );
|
||||
|
||||
Reference in New Issue
Block a user