fixed tax calc when exists tax columns

This commit is contained in:
claudiosmweb 2014-07-24 18:09:13 -03:00
parent 2d61126502
commit e634efa958
1 changed files with 9 additions and 11 deletions

View File

@ -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'] ) ) {