[-] FO : Bug Fixed #PSCFV-3417 - Wrong total order price calculation with tax disabled

This commit is contained in:
fBrignoli
2012-07-31 12:18:10 +00:00
parent bc3e7c0e1f
commit d28d7e63c1
+4 -1
View File
@@ -69,6 +69,10 @@ class TaxRulesTaxManagerCore implements TaxManagerInterface
if (isset($this->tax_calculator))
return $this->tax_calculator;
$taxes = array();
if (!Configuration::get('PS_TAX'))
return new TaxCalculator($taxes);
$postcode = 0;
if (!empty($this->address->postcode))
$postcode = $this->address->postcode;
@@ -86,7 +90,6 @@ class TaxRulesTaxManagerCore implements TaxManagerInterface
$behavior = 0;
$first_row = true;
$taxes = array();
foreach ($rows as $row)
{