the extension in question has the following structure:
- app
- code
- local
- MST
- Menupro
- Block
- Base.php
- Block
- Menupro
- MST
- local
- code
Base.php has:
class MST_Menupro_Block_Base extends Mage_Core_Block_Template { my custom module
- app
- code
- local
- Myname
- BlockOverride
- Block
- Base.php
- Block
- BlockOverride
- Myname
- local
- code
my Base.php has:
class Myname_BlockOverride_Block_Base extends Mage_Core_Block_Template { In my module activation file Myname_BlockOverride.xml I have:
<?xml version="1.0"?> <config> <modules> <Myname_BlockOverride> <codePool>local</codePool> <active>true</active> <depends> <MST_Menupro/> </depends> </Myname_BlockOverride> </modules> </config> module is verified as enabled and working because I am overriding some mage core classes also.
in:
- app
- code
- local
- Myname
- BlockOverride
- etc
- config.xml
- etc
- BlockOverride
- Myname
- local
- code
i have:
<?xml version="1.0"?> <config> <modules> <Myname_BlockOverride> <version>0.1.0</version> </Myname_BlockOverride> </modules> <global> <blocks> <myname_blockoverride> <class>Myname_BlockOverride_Block</class> </myname_blockoverride> <menupro> <rewrite> <base>Myname_BlockOverride_Block_Base</base> </rewrite> </menupro> </blocks> </global> </config> This question has been asked multiple times, like here https://stackoverflow.com/questions/24145976/how-to-rewrite-extend-a-magento-class-in-an-existing-third-party-extension and http://code.tutsplus.com/tutorials/understand-overriding-in-magento-blocks--cms-23325 and Rewrite a local Extension Module doesn't work
which i've dutifully followed through but seem to up against a brick wall. my overriding class file is never loaded (error_log at top of file does not fire).
any help greatly appreciated.
edit: i checked through the 3rd party extension for their block definition in config.xml and see
<blocks> <menupro> <class>MST_Menupro_Block</class> </menupro> </blocks> not sure if i'm missing a clue there somehow