Fixed: Wrong product cart quantity is calculated for auto add service products in the cart

This commit is contained in:
Sumit Panwar
2025-06-18 13:33:16 +05:30
parent 1c150e1427
commit 39cbc47723

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'],