From f8bed77ae266e4919999d33f076ad1487c378d87 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 1 Jul 2025 14:56:53 +0530 Subject: [PATCH] Fixed: Prices in the blockcart are not correct due to cache in the front office --- modules/hotelreservationsystem/classes/HotelCartBookingData.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hotelreservationsystem/classes/HotelCartBookingData.php b/modules/hotelreservationsystem/classes/HotelCartBookingData.php index 59cc39146..06afc559b 100644 --- a/modules/hotelreservationsystem/classes/HotelCartBookingData.php +++ b/modules/hotelreservationsystem/classes/HotelCartBookingData.php @@ -431,6 +431,7 @@ class HotelCartBookingData extends ObjectModel } } // after room is removed from cart, check if any of the appled cart rules are not being used + Cache::clear(); CartRule::autoRemoveFromCart(Context::getContext()); CartRule::autoAddToCart(Context::getContext()); @@ -529,6 +530,7 @@ class HotelCartBookingData extends ObjectModel } } if ($res && $objCart->updateQty((int)($roomsRequired * $num_days), $id_product)) { + Cache::clear(); if ($roomsRequired == 1) { return $obj_htl_cart_booking_data->id; } else {