Merge pull request #4811 from claudiosmweb/fix_4281
Add the payment method title in order details
This commit is contained in:
commit
00dfdb73e3
|
@ -959,6 +959,13 @@ class WC_Order {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $this->get_total() > 0 ) {
|
||||||
|
$total_rows['payment_method'] = array(
|
||||||
|
'label' => __( 'Payment Method:', 'woocommerce' ),
|
||||||
|
'value' => $this->payment_method_title
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$total_rows['order_total'] = array(
|
$total_rows['order_total'] = array(
|
||||||
'label' => __( 'Order Total:', 'woocommerce' ),
|
'label' => __( 'Order Total:', 'woocommerce' ),
|
||||||
'value' => $this->get_formatted_order_total()
|
'value' => $this->get_formatted_order_total()
|
||||||
|
|
Loading…
Reference in New Issue