I have modified
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml
what is the quick process to overwrite the page?thanks
adminhtmlmagento-1.7
I have modified
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml
what is the quick process to overwrite the page?thanks
Best Answer
To add a second templating directory to the adminhtml, for example:
app/design/adminhtml/default/custom/
you'll have to modify the following fileapp/code/core/Mage/Adminhtml/Block/Template.php
add the following
__construct
methodThis will set the
custom
directory as primary templating directory anddefault
as fallbackOf course it's better to overwrite it from your own extension. Create a class that extends the
Mage_Adminhtml_Block_Template
class with just that constructor and add the following to yourconfig.xml