used feature price without reduction for showing price on serch result page

This commit is contained in:
Shreesh Arora
2024-08-29 16:31:30 +05:30
parent 55fdfeb0fc
commit 113b9ebcd5
3 changed files with 3 additions and 20 deletions

View File

@@ -3538,20 +3538,6 @@ class ProductCore extends ObjectModel
return $price;
}
public static function getPriceWithoutReductStatic($id_product, $notax = false, $id_product_attribute = false, $decimals = 6, $with_auto_add_services = 0)
{
$price = Product::getPriceStatic((int)$id_product, !$notax, $id_product_attribute, $decimals, null, false, false);
if ($with_auto_add_services) {
if ($services = RoomTypeServiceProduct::getAutoAddServices((int) $id_product, null, null, Product::PRICE_ADDITION_TYPE_WITH_ROOM, !$notax)) {
foreach($services as $service) {
$price += $service['price'];
}
}
}
return $price;
}
/**
* Display price with right format and currency
*