fixed tax calc when exists tax columns
This commit is contained in:
parent
2d61126502
commit
e634efa958
|
@ -1262,20 +1262,18 @@ class WC_AJAX {
|
|||
$taxes = array();
|
||||
$shipping_taxes = array();
|
||||
|
||||
// Prevent undefined warnings
|
||||
if ( ! isset ( $items['order_taxes'] ) ) {
|
||||
$items['order_taxes'] = array();
|
||||
}
|
||||
if ( ! isset ( $items['line_tax'] ) ) {
|
||||
$items['line_tax'] = array();
|
||||
}
|
||||
if ( ! isset ( $items['line_subtotal_tax'] ) ) {
|
||||
$items['line_subtotal_tax'] = array();
|
||||
}
|
||||
|
||||
// Parse the jQuery serialized items
|
||||
parse_str( $_POST['items'], $items );
|
||||
|
||||
// Prevent undefined warnings
|
||||
if ( ! isset( $items['line_tax'] ) ) {
|
||||
$items['line_tax'] = array();
|
||||
}
|
||||
if ( ! isset( $items['line_subtotal_tax'] ) ) {
|
||||
$items['line_subtotal_tax'] = array();
|
||||
}
|
||||
$items['order_taxes'] = array();
|
||||
|
||||
// Get items and fees taxes
|
||||
if ( isset( $items['order_item_id'] ) ) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue