I have added extra fee in the checkout page and save it to the database but when I go to credit memos the extra fee is shown in Credit memo totals but the grand total is not updated

enter image description here

This is my config.xml file


1 Answer 1


Check this module on github by Adam Moss. I have used the creditmemoSaveBefore() method in observer for the same solution. (Use your extra charge fee variable at the place of $depositAmount)



class Creare_Deposit_Model_Observer {

    /* ... */

    public function creditmemoSaveBefore(Varien_Event_Observer $observer)
        $post_data = Mage::app()->getRequest()->getPost();
        $creditmemo = $observer->getEvent()->getCreditmemo();
        $deposit_amount = $post_data['creditmemo']['deposit_amount'];
        if ($deposit_amount > 0)
            $depositAmount = $creditmemo->getDepositAmount();
            $baseDepositAmount = $creditmemo->getDepositAmount();
            // Adjust Grand Total to reflect Deposit refund
            // Set Deposit Total to actual refund amount
        return $this;

    /* ... */

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.