Upgrading to WC 4.1.1 not recounted at a discount for items
-
Hello, when upgrading to WC 4.1.1 when processing an order, an error occurred while applying coupons,
the regular cost of items is not recounted at a discount, which makes it inconvenient!
In a previous version of WC 3.8.9, this method worked correctly!Please correct this error or make corrections in the next WC 4.1.1 update or write an additional snippet.
See screenshot for explanation:
P.S
To display the subtotal, I used the following code (which worked correctly in version 3.8.9)
the code:
__________
/*
* This code will add subtotal to edit order admin woocommerce.
* Author: WooExtend
* Date: 13-02-2018
*/add_action( ‘woocommerce_admin_order_totals_after_discount’, ‘vp_add_sub_total’, 10, 1);
function vp_add_sub_total( $order_id ) {
$order = wc_get_order( $order_id );
?><tr>
<td class=”label”>Subtotal:</td>
<td width=”1%”></td>
<td class=”total”><?php echo wc_price($order->get_subtotal());?></td>
</tr><?php
}__________
- The topic ‘Upgrading to WC 4.1.1 not recounted at a discount for items’ is closed to new replies.