Merge pull request #4811 from claudiosmweb/fix_4281

Add the payment method title in order details
This commit is contained in:
Coen Jacobs 2014-02-17 13:27:38 +01:00
commit 00dfdb73e3
1 changed files with 7 additions and 0 deletions

View File

@ -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()