I am trying to rewrite a block for a module in the community code pool. The Module that I am trying to rewrite is TBT_Enhancedgrid. The directory structure is
app/code/community/TBT
└── Enhancedgrid
├── Block
│ ├── Catalog
│ │ ├── Product
│ │ │ ├── Grid
│ │ │ │ └── Columns.php
│ │ │ └── Grid.php
│ │ └── Product.php
│ ├── System
│ │ └── Html.php
│ └── Widget
│ ├── Grid
│ │ ├── Column
│ │ │ ├── Filter
│ │ │ │ ├── Category.php
│ │ │ │ └── Image.php
│ │ │ └── Renderer
│ │ │ ├── Action.php
│ │ │ ├── Category.php
│ │ │ └── Image.php
│ │ └── Column.php
│ └── Loyalty.php
├── controllers
app/code/local/Company/TBT/
└── EnhancedGrid
├── Block
│ └── Widget
│ └── Grid
│ ├── Column
│ │ └── Renderer
│ │ └── Image.php
│ └── Column.php
└── etc
└── config.xml
I am trying to re-write Column.php from the community module. The contents of the config file is
<?xml version="1.0"?>
<config>
<modules>
<Company_TBT_Enhancedgrid>
<version>1.3.2.1</version>
</Company_TBT_Enhancedgrid>
</modules>
<global>
<blocks>
<adminhtml>
<rewrite>
<widget_grid_column>Company_TBT_Enhancedgrid_Block_Widget_Grid_Column</widget_grid_column>
</rewrite>
</adminhtml>
</blocks>
</global>
</config>
The contents of the app/etc/module/Company_TBT_Enhancedgrid.xml
<?xml version="1.0"?>
<config>
<modules>
<Company_TBT_Enhancedgrid>
<active>true</active>
<codePool>local</codePool>
<depends>
<TBT_Enhancedgrid/>
</depends>
</Company_TBT_Enhancedgrid>
</modules>
✔
The Column.php file in local pool is
class Company_TBT_Enhancedgrid_Block_Widget_Grid_Column extends TBT_Enhancedgrid_Block_Widget_Grid_Column
{
/* with contents*/
}
But the function defined in Image.php in local code pool is not being over-ridden. I did read the other related posting before posting this question, but I still can't figure out what am I doing wrong. Any help would be nice. Thanks