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

  • Please add your config.xml? – Renon Stewart Sep 23 '15 at 13:52

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;

    /* ... */
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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