How can we round up or down grand totals when payment method is cash on delivery on checkout page. ex. If total is 50.60 then if customer selected cash on delivery payment method then grand total should be 51.00.

How can we do that please help it will be very useful.

2 Answers 2


Try use event observer.




class NamaSpace_Module_Model_Observer{
    public function paymentmethod(Varien_Event_Observer $observer) 
        $method = $observer->getEvent()->getMethodInstance();
        $quote = $observer->getEvent()->getQuote();
            //get grand total and modified it.


Use the PHP function round() to round off the price.

Example is below:

echo round(3.5); output: 4
  • Welcome to Magento SE. Changing the output and then still charge the original price is certainly not what OP wanted, so unfortunately this answer is not very helpful Jan 13, 2017 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.