I have an observer for the event
controller_action_predispatch_checkout_onepage_savePayment
and I want to change the Grand Total based on some conditions. I tried with:
$value = 100;
$quote = Mage::getSingleton('checkout/type_onepage')->getQuote();
$quote->setGrandTotal($value);
$quote->setTotalsCollectedFlag(false)->collectTotals();
$quote->save();
or
$value = 100;
$quote = Mage::getSingleton('checkout/type_onepage')->getQuote();
$quote->setGrandTotal($value);
$quote->collectTotals();
$quote->save();
But it don't works. Any ideas?
Thanks to all!