added the payment method title in order details, closes #4281

This commit is contained in:
claudiosmweb 2014-02-15 03:14:04 -02:00
parent d5482d00d0
commit bc98201d26
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()