cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9 - What is the best way to edit core files?

Magento 1.9 - What is the best way to edit core files?

I need to edit -> app/design/adminhtml/default/default/template/sales/order/view/items.phtml, editing core files is dangerous, may i know how can i edit without affect core files.

Some case we can edit the file app\design\frontend\default\theme327k\template instead of edit core path app\design\frontend\base\default\template. Same how to follow in app/design/adminhtml?

2 REPLIES 2

Re: Magento 1.9 - What is the best way to edit core files?

@bennetttristan_ please check the below link and let me know if you stuck anywhere.

 

Editing core files 

 

Thanks

Re: Magento 1.9 - What is the best way to edit core files?

Please follow the below to resolve this

 

Create small module to Override adminhtml template file
[app/code/local/Vendorname/Modulename/etc/config.xml]
<stores>
<admin>
<design>
<package>
<name>default</name>
</package>
<theme>
<default>yourtheme</default>
</theme>
</design>
</admin>
</stores>

[app/etc/modules/Vendorname_Modulename.xml]

<?xml version="1.0"?>
<config>
<modules>
<Vendorname_Modulename>
<active>true</active>
<codePool>local</codePool>
</Vendorname_Modulename>
</modules>
</config>

Copy file from core
app/design/adminhtml/default/default/template/sales/order/view/items.phtml
add this location
app/design/adminhtml/default/yourtheme/template/sales/order/view/items.phtml

 

Let me know if any issues


If my answer is useful, please Accept as Solution & give Kudos