From bc98201d261ec4118bb9fca79220dfca05986ecb Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Sat, 15 Feb 2014 03:14:04 -0200 Subject: [PATCH] added the payment method title in order details, closes #4281 --- includes/class-wc-order.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/class-wc-order.php b/includes/class-wc-order.php index 10c0b5c2624..f562676d5fe 100644 --- a/includes/class-wc-order.php +++ b/includes/class-wc-order.php @@ -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( 'label' => __( 'Order Total:', 'woocommerce' ), 'value' => $this->get_formatted_order_total()