I have an observer who changes the price of the items and at the end of the routine the whole order changes, but on my cart edit screen the subtotal of the item still keeps the old price of the item, how can I fix this?
The functions used to make the change are:
$itemcarrinho->setCustomPrice($temp);
$itemcarrinho->setOriginalCustomPrice($temp);
$itemcarrinho->getProduct()->setIsSuperMode(true);
$itemcarrinho->save();
$quote->setSubtotal($total)
->setBaseSubtotal($total)
->setGrandTotal($total)
->setBaseGrandTotal($total);
$quote->save();
Magento 2.3.5