Discounts should be last

This commit is contained in:
Mike Jolley 2017-08-11 16:15:53 +01:00
parent 56726deb5a
commit 2c5a5b9409
1 changed files with 8 additions and 8 deletions

View File

@ -63,14 +63,6 @@ if ( wc_tax_enabled() ) {
do_action( 'woocommerce_admin_order_items_after_line_items', $order->get_id() );
?>
</tbody>
<tbody id="order_discount_line_items">
<?php
foreach ( $discounts as $item_id => $item ) {
include( 'html-order-discount.php' );
}
do_action( 'woocommerce_admin_order_items_after_discounts', $order->get_id() );
?>
</tbody>
<tbody id="order_shipping_line_items">
<?php
$shipping_methods = WC()->shipping() ? WC()->shipping->load_shipping_methods() : array();
@ -88,6 +80,14 @@ if ( wc_tax_enabled() ) {
do_action( 'woocommerce_admin_order_items_after_fees', $order->get_id() );
?>
</tbody>
<tbody id="order_discount_line_items">
<?php
foreach ( $discounts as $item_id => $item ) {
include( 'html-order-discount.php' );
}
do_action( 'woocommerce_admin_order_items_after_discounts', $order->get_id() );
?>
</tbody>
<tbody id="order_refunds">
<?php
if ( $refunds = $order->get_refunds() ) {