I'm following the tutorial link below (first method), but I am not succeeding:
I start creating my module on app/etc/modules/Fouron_Sales.xml:
<?xml version="1.0" encoding="utf-8"?>
<config>
<modules>
<Fouron_Sales>
<active>true</active>
<codePool>local</codePool>
</Fouron_Sales>
</modules>
<default>
<blocks>
<adminhtml>
<rewrite>
<sales_order_view_info>Mage_Fouron_Sales_Block_Sales_Order_View_Info</sales_order_view_info>
</rewrite>
</adminhtml>
</blocks>
</default>
</config>
After I created at app/code/local/Fouron/Sales/Block/Sales/Order/View/Info.php:
<?php
class Mage_Fouron_Sales_Block_Sales_Order_View_Info extends Mage_Adminhtml_Block_Sales_Order_View_Info
{
protected function _construct()
{
$this->setTemplate('fouron/sales/order/view/info.phtml');
}
}
And finally the file app/design/adminhtml/default/default/fouron/sales/order/view/info.phtml
I spend hours with this and tried some other modifications unsuccessfully, any help will be great. Thanks.
Best Answer
Another way to accomplish this since a lot of other paid module my customize this files, is to create a custom admin theme
In /app/etc/local.xml
Then copy
to (and then make all your changes to this file)