display the transaction id in the order data meta box
This commit is contained in:
parent
7f4b768c2a
commit
977751dd20
|
@ -207,6 +207,10 @@ class WC_Meta_Box_Order_Data {
|
||||||
if ( $payment_method )
|
if ( $payment_method )
|
||||||
echo '<p><strong>' . __( 'Payment Method', 'woocommerce' ) . ':</strong> ' . ( isset( $payment_gateways[ $payment_method ] ) ? esc_html( $payment_gateways[ $payment_method ]->get_title() ) : esc_html( $payment_method ) ) . '</p>';
|
echo '<p><strong>' . __( 'Payment Method', 'woocommerce' ) . ':</strong> ' . ( isset( $payment_gateways[ $payment_method ] ) ? esc_html( $payment_gateways[ $payment_method ]->get_title() ) : esc_html( $payment_method ) ) . '</p>';
|
||||||
|
|
||||||
|
if ( $transaction_id = get_post_meta( $order->id, '_transaction_id', true ) ) {
|
||||||
|
echo '<p><strong>' . __( 'Payment Transaction ID', 'woocommerce' ) . ':</strong> ' . esc_html( $transaction_id ) . '</p>';
|
||||||
|
}
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
// Display form
|
// Display form
|
||||||
|
@ -397,4 +401,4 @@ class WC_Meta_Box_Order_Data {
|
||||||
|
|
||||||
wc_delete_shop_order_transients( $post_id );
|
wc_delete_shop_order_transients( $post_id );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue