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

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