1

I want to change in SaveAction() of Mage_Adminhtml_Sales_Order_CreateController. So for this I have make changes in config.xml like below :

<admin>
    <routers>
        <adminhtml>
            <args>
                <modules>
                    <Mycompany_Modulename before="Mage_Adminhtml">
                        Mycompany_Modulename_Adminhtml
                    </Mycompany_Modulename>
                </modules>
            </args>
        </adminhtml>
    </routers>
</admin>

and add file at

require_once Mage::getModuleDir('controllers', 'Mage_Adminhtml').DS.'Sales/Order/CreateController.php';

class Mycompany_Modulename_Adminhtml_Sales_Order_CreateController extends Mage_Adminhtml_Sales_Order_CreateController
{  
}

It is working and called SaveAction() when admin create an order.But if admin edit an order that time SaveAction() is called from core file Mage_Adminhtml_Sales_Order_CreateController

Can anyone help on this ?

1 Answer 1

1

I have extend EditController.php from Mage_Adminhtml_Sales_Order_EditController and put SaveAction into that.

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.