I have created a custom module to update grand total but I need to update grand total only after filling address information on one page checkout because I have to check particular postal/zip code that user added and based on that have to update grand total.Here is my config file code
<checkout_onepage_savePayment> <observers> <magepal_mycheckout_order_observer> <type>singleton</type> <class>MagePal_MyCheckout_Model_Observer</class> <method>sendemail</method> </magepal_mycheckout_order_observer> </observers> </checkout_onepage_savePayment>
$quote = $observer->getEvent()->getQuote(); $grandTotal = $quote->getGrandTotal(); $baseGrandTotal = $quote->getBaseGrandTotal(); $partialPrice = $grandTotal + 10; $basePartialPrice = $baseGrandTotal + 10; $quote->setGrandTotal($partialPrice); $quote->setBaseGrandTotal($basePartialPrice); $quote->save();
I have tried several other events but when I reach to review order step,no change to grand total.
Can anybody please point me out where I did wrong ?