+ if ($tax_included==1) return $price;
+
+ // if array already read, then make a copy and use that
+ if ($tax_group_array)
+ $ret_tax_array = $tax_group_array;
+ else
+ $ret_tax_array = get_tax_group_items_as_array($tax_group);
+
+ //print_r($ret_tax_array);
+
+ $tax_array = get_taxes_for_item($stock_id, $ret_tax_array);
+ // if no exemptions or taxgroup is empty, then no included/excluded taxes
+ if ($tax_array == null)
+ return $price;
+
+ $tax_multiplier = 0;
+
+ // loop for all items