From d66f407fcb6aaa3028e62cbfeb7d370ceee046fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Nadaud?= Date: Tue, 16 Jul 2013 18:28:11 +0200 Subject: [PATCH] [-] BO : Use only 0% reduction from category in group --- classes/Product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Product.php b/classes/Product.php index fbfc0d323..d14d49294 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2700,8 +2700,8 @@ class ProductCore extends ObjectModel if ($use_group_reduction) { $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; else // apply group reduction if there is no group reduction for this category $price *= ((100 - Group::getReductionByIdGroup($id_group)) / 100);