Merge pull request #1509 from sumitwebkul/gli-2729

Fixed: Wrong product cart quantity is calculated for auto add service products in the cart
This commit is contained in:
Rohit Jain
2025-06-18 20:08:24 +05:30
committed by GitHub

View File

@@ -2432,7 +2432,7 @@ class CartCore extends ObjectModel
$array[$selectedProduct['id_room_type_hotel']]['total_price_tax_incl'] += $selectedProduct['total_price_tax_incl'];
} else {
$array[$selectedProduct['id_room_type_hotel']] = array(
'quantity' => $selectedProduct['quantity'],
'quantity' => 0,
'id_hotel' => $selectedProduct['id_room_type_hotel'],
'total_price_tax_excl' => $selectedProduct['total_price_tax_excl'],
'total_price_tax_incl' => $selectedProduct['total_price_tax_incl'],