I want to override the default functionality of stores (adding some fields like commission , location to deliver etc ), but i am not able to configure it. My configure file as follows
<config>
...
<admin>
<routers>
<adminhtml>
<args>
<modules>
<store before="Mage_Adminhtml">Mycompany_Store_Adminhtml_Store</store>
</modules>
</args>
</adminhtml>
</routers>
</admin>
</global>
....
</config>
It doesnt work at all.
Best Answer
With my comment on Marius' answer, his solution should work.
However, you c/should be doing this using
system.xml
, which allows you to specify fields in System Configuration. You can then read these values usingMage::getStoreConfig()
and perform the logic which you need.