+ $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
+
+ foreach ($tax_array as $taxitem)
+ {
+ $tax_multiplier += $taxitem["rate"];
+ }
+
+ return round($price * (1 + ($tax_multiplier / 100)), user_price_dec());
+}
+
+//---------------------------------------------------------------------------------