I am working on ajax cart.
When i update the cart qty, I am trying to reload the quote but its not loading properly
$this->cart->getQuote()->getShippingAddress()->collectShippingRates()->save();
$this->cart->getQuote()->setTotalsCollectedFlag(false);
$this->cart->getQuote()->collectTotals();
$this->cart->getQuote()->save();
How to reload the quote so that total calculation should happen properly
in magento1 we use cart::init()
Best Answer
I hope this may helps you
After add to cart run this code:
in constructor:
After product was added to cart
Before trying above code try with frontend/section.xml :