I'm trying to override a Block class called Smartwave_Megamenu_Block_Topmenu
, which is declared like the following:
<blocks>
<catalog>
<rewrite>
<navigation>Smartwave_Megamenu_Block_Navigation</navigation>
<!-- v1.4-1.6 -->
</rewrite>
</catalog>
<page>
<rewrite>
<html_topmenu>Smartwave_Megamenu_Block_Topmenu</html_topmenu>
<!-- v1.7 -->
</rewrite>
</page>
<megamenu>
<class>Smartwave_Megamenu_Block</class>
</megamenu>
</blocks>
As you can see this config.xml
-Block node is rewriting html_topmenu
of Mage_Core
.
However, if I try to rewrite megamenu
like the following:
<blocks>
<vendor_template>
<class>Vendor_Template_Block</class>
</vendor_template>
<megamenu>
<rewrite>
<topmenu>Vendor_Template_Block_Topmenu</topmenu>
</rewrite>
</megamenu>
</blocks>
The same old Class is still loaded. Why is this happening and how can I rewrite this Block Class properly?
I've cleared caches, of course.