Helper/Discount.php
private function updateTotals(Quote $quote)
    {
        $quote->getShippingAddress()->setCollectShippingRates(true);
        $quote->setTotalsCollectedFlag(false);
        $quote->collectTotals();
        $quote->setDataChanges(true);
        $this->quoteRepository->save($quote);
    }
private function updateTotals(Quote $quote)
    {
        $quote->getShippingAddress()->setCollectShippingRates(true);
        $quote->setTotalsCollectedFlag(false);
        $quote->collectTotals();
        $quote->setDataChanges(true);
        $this->quoteRepository->save($quote);
    }
private function updateTotals ( Quote $ quote ) { $ quote -> getShippingAddress ( ) -> setCollectShippingRates ( true ) ; $ quote -> setTotalsCollectedFlag ( false ) ; $ quote -> collectTotals ( ) ; $ quote -> setDataChanges ( true ) ; $ this -> quoteRepository -> save ( $ quote ) ; }
Collect and update quote totals.
@param Quote $quote
Collect and update quote totals .