I need to override a Block from an external extension. This is my setup with the necessary files:
The module file (app/etc/modules/Mynamespace_Mymodulename.xml):
<?xml version="1.0"?>
<config>
<modules>
<Mynamespace_Mymodulename>
<active>true</active>
<codePool>local</codePool>
<depends>
<mgs_auction />
</depends>
</Mynamespace_Mymodulename>
</modules>
</config>
The config file (app/code/local/Mynamespace/Auction/etc/config.xml):
<?xml version="1.0"?>
<config>
<modules>
<Mynamespace_Mymodulename>
<version>1.0</version>
</Mynamespace_Mymodulename>
</modules>
<global>
<blocks>
<auction>
<rewrite>
<auction>Mynamespace_Auction_Block_Auction</auction>
</rewrite>
</auction>
</blocks>
</global>
</config>
The block path from the extension:
app/code/local/Mgs/Auction/Block/Auction.php
and my structure:
app/code/local/Mynamespace/Auction/Block/Auction.php
with following content:
class Mynamespace_Auction_Block_Auction extends Mgs_Auction_Block_Auction {
public function ... () {
...
}
}
Tested it but the original block class from the extension is still used. I guess something is missing or wrong titled in the config.xml. Could you help me out?
Edit:
The original config.xml from the extension:
<?xml version="1.0"?>
<config>
<modules>
<Mgs_Auction>
<version>2.2.0</version>
</Mgs_Auction>
</modules>
...
<global>
<blocks>
<auction>
<class>Mgs_Auction_Block</class>
</auction>
</blocks>
</global>
</config>
config.xml
file ?