[*] Classes : fix bug #PSFV-162 - Remove unused variables
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12125 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -546,9 +546,10 @@ class ProductControllerCore extends FrontController
|
||||
{
|
||||
if ($row['reduction_type'] == 'amount')
|
||||
{
|
||||
$reduction_amount = $row['reduction'];
|
||||
if (!$row['id_currency'])
|
||||
$reduction_amount = Tools::convertPrice($reduction_amount, $this->context->currency->id);
|
||||
// Commenting unused code, delete if useless
|
||||
// $reduction_amount = $row['reduction'];
|
||||
// if (!$row['id_currency'])
|
||||
// $reduction_amount = Tools::convertPrice($reduction_amount, $this->context->currency->id);
|
||||
$row['real_value'] = Product::$_taxCalculationMethod == PS_TAX_INC ? $row['reduction'] : $row['reduction'] / (1 + $tax_rate / 100);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user