I want to override Magento block Order_Grid, but Magento don't recognize my class.
/app/etc/modules/Octo_OrderGrid.xml
<?xml version="1.0"?> <config> <modules> <Octo_OrderGrid> <active>true</active> <codePool>local</codePool> </Octo_OrderGrid> </modules> </config> /app/code/local/Octo/OrderGrid/etc/config.xml
<?xml version="1.0" encoding="utf-8"?> <config> <modules> <Octo_OrderGrid> <version>1.0</version> </Octo_OrderGrid> </modules> <global> <blocks> <adminhtml> <rewrite> <sales_order_grid>Octo_OrderGrid_Adminhtml_Block_Sales_Order_Grid</sales_order_grid> </rewrite> </adminhtml> </blocks> </global> </config> /app/code/local/Octo/OrderGrid/Adminhtml/Block/Sales/Order/Grid.php
class Octo_OrderGrid_Adminhtml_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Widget_Grid { //Some code } This are my three files, I followed instructions on some questions I found on this site, step by step, but again I couldn't make it work.
I can override when I put php file in /app/code/local/Mage/... but that is not what I want.
I use Magento 1.7