Remove unwanted code from last commit

This commit is contained in:
Abhishek Kumar
2023-01-10 16:31:27 +05:30
parent 5ceca9c9e1
commit a75d3deee2

View File

@@ -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