slupostrupek Posted July 9, 2015 Share Posted July 9, 2015 wait, i need to check it again. Link to comment Share on other sites More sharing options...
slupostrupek Posted July 9, 2015 Author Share Posted July 9, 2015 So again, function in currencies.php: function calculate_price($products_price, $products_tax, $quantity = 1) { return tep_round(tep_add_tax($products_price, $products_tax), $this->currencies[$_SESSION['currency']]['decimal_places']) * $quantity; } Should be: function calculate_price($products_price, $products_tax, $quantity = 1) { return tep_round(tep_add_tax($products_price, $products_tax) * $quantity, $this->currencies[$_SESSION['currency']]['decimal_places']); } multiplication by quantity should be inside tep_round function. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.