From d67781566d4e42b01993d3dcc66879e274cc0179 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Wed, 27 Mar 2024 12:33:35 +0530 Subject: [PATCH] add new categories in demo data --- .../classes/HotelHelper.php | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/modules/hotelreservationsystem/classes/HotelHelper.php b/modules/hotelreservationsystem/classes/HotelHelper.php index faecfcfa7..dba1a9b41 100644 --- a/modules/hotelreservationsystem/classes/HotelHelper.php +++ b/modules/hotelreservationsystem/classes/HotelHelper.php @@ -555,14 +555,22 @@ class HotelHelper // create service categories $categories = array( - 'meals' => array( - 'name' => 'Meals', + 'restaurant' => array( + 'name' => 'Restaurant', 'id_category' => 'to_be_set_below', ), 'transfers' => array( 'name' => 'Transfers', 'id_category' => 'to_be_set_below', - ) + ), + 'activities' => array( + 'name' => 'Activities', + 'id_category' => 'to_be_set_below', + ), + 'charges' => array( + 'name' => 'Supplementary charges', + 'id_category' => 'to_be_set_below', + ), ); foreach ($categories as &$category) { @@ -574,7 +582,7 @@ class HotelHelper $serviceProducts = array( array( 'name' => 'Room Maintenance Fees', - 'id_category_default' => $idCategoryServices, + 'id_category_default' => $categories['charges']['id_category'], 'description' => 'Ensure a comfortable stay with our room maintenance service, keeping your accommodation pristine and hassle-free throughout your visit.', 'price' => '250', 'auto_add_to_cart' => 1, @@ -584,7 +592,7 @@ class HotelHelper ), array( 'name' => 'Internet Handling Charges', - 'id_category_default' => $idCategoryServices, + 'id_category_default' => $categories['charges']['id_category'], 'description' => 'Navigate our website effortlessly with seamless handling, ensuring reliable, high-speed access for an enjoyable browsing experience throughout your online journey.', 'price' => '250', 'auto_add_to_cart' => 1, @@ -614,7 +622,7 @@ class HotelHelper ), array( 'name' => 'Breakfast', - 'id_category_default' => $categories['meals']['id_category'], + 'id_category_default' => $categories['restaurant']['id_category'], 'description' => 'Start your day right with a delicious and hearty breakfast, thoughtfully prepared to fuel your adventures and make your mornings exceptional.', 'price' => '350', 'auto_add_to_cart' => 0, @@ -624,7 +632,7 @@ class HotelHelper ), array( 'name' => 'Dinner', - 'id_category_default' => $categories['meals']['id_category'], + 'id_category_default' => $categories['restaurant']['id_category'], 'description' => 'Wind down in the evening with a delectable dinner spread, offering a culinary journey that delights your taste buds and completes your day with satisfaction.', 'price' => '450', 'auto_add_to_cart' => 0,