[-] BO : Use only 0% reduction from category in group
This commit is contained in:
+1
-1
@@ -2701,7 +2701,7 @@ class ProductCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
$reduction_from_category = GroupReduction::getValueForProduct($id_product, $id_group);
|
$reduction_from_category = GroupReduction::getValueForProduct($id_product, $id_group);
|
||||||
|
|
||||||
if (!empty($reduction_from_category))
|
if (!empty($reduction_from_category) && (float)$reduction_from_category == 0)
|
||||||
$price -= $price * (float)$reduction_from_category;
|
$price -= $price * (float)$reduction_from_category;
|
||||||
else // apply group reduction if there is no group reduction for this category
|
else // apply group reduction if there is no group reduction for this category
|
||||||
$price *= ((100 - Group::getReductionByIdGroup($id_group)) / 100);
|
$price *= ((100 - Group::getReductionByIdGroup($id_group)) / 100);
|
||||||
|
|||||||
Reference in New Issue
Block a user