From a75d3deee262b5bfd8a05bcafa8eeb84e9d03992 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 10 Jan 2023 16:31:27 +0530 Subject: [PATCH] Remove unwanted code from last commit --- classes/CartRule.php | 10 ---------- 1 file changed, 10 deletions(-) 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