Optimized code, changed the depricate function HotelRoomTypeFeaturePricing::deleteByIdCart() calls with HotelRoomTypeFeaturePricing::deleteFeaturePrices()

This commit is contained in:
vishalsingh.qlo325
2025-04-16 13:00:25 +05:30
parent 4e3523f1b4
commit 232e16af2d
6 changed files with 19 additions and 18 deletions

View File

@@ -960,7 +960,7 @@ class AdminCartsControllerCore extends AdminController
}
if ($this->tabAccess['edit'] === '1') {
HotelRoomTypeFeaturePricing::deleteByIdCart($id_cart, $id_product, $id_room, $date_from, $date_to);
HotelRoomTypeFeaturePricing::deleteFeaturePrices($id_cart, $id_product, $id_room, $date_from, $date_to);
$feature_price_name = array();
foreach (Language::getIDs(true) as $id_lang) {
$feature_price_name[$id_lang] = 'Auto-generated';