Fixed: Wrong price in cart dropdown in header if Product selling preference is changed after adding the product into the cart

This commit is contained in:
Sumit Panwar
2025-07-02 13:16:28 +05:30
parent 569c093b00
commit b4acaf737b

View File

@@ -50,6 +50,9 @@ class Blockcart extends Module
{
global $errors;
// validate cart bookings before displaying cart
HotelCartBookingData::validateCartBookings();
// Set currency
if ((int) $params['cart']->id_currency && (int) $params['cart']->id_currency != $this->context->currency->id) {
$currency = new Currency((int) $params['cart']->id_currency);