diff --git a/classes/CartRule.php b/classes/CartRule.php index 30cdcb53d..9086135ad 100644 --- a/classes/CartRule.php +++ b/classes/CartRule.php @@ -1031,16 +1031,6 @@ class CartRuleCore extends ObjectModel } } - $restricted_product = null; - // If the cart rule is restricted to one room type it can't exceed this room type price - if ($this->reduction_product > 0) { - foreach ($package_products as $product) { - if ($product['id_product'] == $this->reduction_product) { - $restricted_product = $product; - } - } - } - $restricted_product = null; $reduction_amount = $this->reduction_amount; // If the cart rule is restricted to one room type it can't exceed this room type price