I need to override the file app\design\adminhtml\default\default\template\catalog\product\edit\options\option.phtml.
What steps are required?
The simple way:
app/etc/config.xml
<config>
<!-- We add this : Add "atome" admin theme-->
<stores>
<admin>
<design>
<theme>
<template>atome</template>
</theme>
</design>
</admin>
</stores>
</config>
copy file from :
app/design/adminhtml/default/default/template/catalog/product/edit/options/option.phtml
to
app/design/adminhtml/default/atome/template/catalog/product/edit/options/option.phtml
Add your custom code in default/atome/template/catalog/product/edit/options/option.phtml
app/etc/config.xml
is there specifically to make config changes, just like app/etc/local.xml
is there to make environment specific config changes. This way he simply configs a new theme to be loaded under the admin
store, which is the correct way to do it without building a full module to change admin themes via a web-based toggle.
Feb 4, 2020 at 16:27