Timeline for Magento 2.4.2. Mini cart count not updating after free product remove on update cart button click
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 28, 2021 at 11:37 | vote | accept | mechanic | ||
Apr 28, 2021 at 10:03 | answer | added | mechanic | timeline score: 2 | |
Apr 27, 2021 at 10:08 | comment | added | mechanic | I tried both but it did not work. | |
Apr 26, 2021 at 19:25 | answer | added | AlexanderPop | timeline score: 0 | |
Apr 26, 2021 at 11:42 | comment | added | Partab Saifuddin Zakir | $itemId = $item->getData('item_id'); $helper->getCart()->removeItem($itemId)->save(); If this does not work $quote->getQuote()->setTotalsCollectedFlag(false) ->collectTotals() ->save(); Add this ofter cart save. | |
Apr 26, 2021 at 11:13 | history | asked | mechanic | CC BY-SA 4.0 |