This commit is contained in:
xristos3490 2021-12-10 17:47:58 +02:00
parent 8ee6fa6fbe
commit 304840bb6b
1 changed files with 0 additions and 1 deletions

View File

@ -282,7 +282,6 @@ if ( wc_tax_enabled() ) {
<?php else : ?>
<span class="description"><?php echo wc_help_tip( __( 'To edit this order change the status back to "Pending payment"', 'woocommerce' ) ); ?> <?php esc_html_e( 'This order is no longer editable.', 'woocommerce' ); ?></span>
<?php endif; ?>
<?php if ( apply_filters( 'woocommerce_admin_order_should_render_refunds', false, $order->get_id(), $order ) || 0 < $order->get_total() - $order->get_total_refunded() || 0 < absint( $order->get_item_count() - $order->get_item_count_refunded() ) ) : ?>
<button type="button" class="button refund-items"><?php esc_html_e( 'Refund', 'woocommerce' ); ?></button>
<?php endif; ?>