From 977751dd2098959ad224dfea3ca16878a1dfc9d1 Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Wed, 11 Jun 2014 16:37:00 -0300 Subject: [PATCH] display the transaction id in the order data meta box --- includes/admin/meta-boxes/class-wc-meta-box-order-data.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/class-wc-meta-box-order-data.php b/includes/admin/meta-boxes/class-wc-meta-box-order-data.php index 5f3a747fcdf..4d5e6a0308e 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-order-data.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-order-data.php @@ -207,6 +207,10 @@ class WC_Meta_Box_Order_Data { if ( $payment_method ) echo '

' . __( 'Payment Method', 'woocommerce' ) . ': ' . ( isset( $payment_gateways[ $payment_method ] ) ? esc_html( $payment_gateways[ $payment_method ]->get_title() ) : esc_html( $payment_method ) ) . '

'; + if ( $transaction_id = get_post_meta( $order->id, '_transaction_id', true ) ) { + echo '

' . __( 'Payment Transaction ID', 'woocommerce' ) . ': ' . esc_html( $transaction_id ) . '

'; + } + echo ''; // Display form @@ -397,4 +401,4 @@ class WC_Meta_Box_Order_Data { wc_delete_shop_order_transients( $post_id ); } -} \ No newline at end of file +}