added refund amount to order details template file closes #7138
This commit is contained in:
parent
36841589cf
commit
980695e7f0
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.2.0
|
||||
* @version 2.3.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
|
@ -97,6 +97,16 @@ $order = wc_get_order( $order_id );
|
|||
<?php
|
||||
endforeach;
|
||||
|
||||
// check for refund
|
||||
if ( $order->get_total_refunded() !== NULL ) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e( 'Refunded:', 'woocommerce' ); ?></th>
|
||||
<td>-<?php echo wc_price( $order->get_total_refunded(), array( 'currency' => $order->get_order_currency() ) ); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// Check for customer note
|
||||
if ( '' != $order->customer_note ) {
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue