Skip to content

Commit

Permalink
Merge pull request #1303 from shreesh-webkul/patch-service-price
Browse files Browse the repository at this point in the history
Fixed: incorrect service price calculation when multiple hotels are added in cart
  • Loading branch information
rohit053 authored Oct 10, 2024
2 parents 75616fb + fad6185 commit 68ea729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ public function getOrderTotal($with_taxes = true, $type = Cart::BOTH, $products
if ($servicesWithRoom = $objRoomTypeServiceProductCartDetail->getServiceProductsInCart(
$this->id,
(int)$product['id_product'],
0,
isset($product['id_hotel']) ? $product['id_hotel'] : 0,
0,
0,
0,
Expand Down
4 changes: 2 additions & 2 deletions modules/hotelreservationsystem/classes/HotelHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ public function insertDefaultHotelEntries()

Configuration::updateValue(
'WK_HOTEL_GLOBAL_ADDRESS',
'The Hotel Prime, Monticello Dr, Montgomery, AL 36117, USA'
'The Hotel Prime, Monticello Dr, Montgomery, 10010'
);
Configuration::updateValue('WK_HOTEL_GLOBAL_CONTACT_NUMBER', '0987654321');
Configuration::updateValue('WK_HOTEL_GLOBAL_CONTACT_EMAIL', '[email protected]');
Expand Down Expand Up @@ -1612,7 +1612,7 @@ public function saveDummyHotelBranchInfo()
$objAddress->id_state = $state_id;
$objAddress->id_country = $def_cont_id;
$objAddress->postcode = Tools::generateRandomZipcode($def_cont_id);
$objAddress->address1 = 'Monticello Dr, Montgomery, AL 36117, USA';
$objAddress->address1 = 'Monticello Dr, Montgomery, 10010';
$objAddress->alias = 'The Hotel Prime';
$objAddress->lastname = 'The Hotel Prime';
$objAddress->firstname = 'The Hotel Prime';
Expand Down

0 comments on commit 68ea729

Please sign in to comment.