I need to override the file app\design\adminhtml\default\default\template\catalog\product\edit\options\option.phtml.
What steps are required?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityThe 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.
– Rhys - SproutDesk
Feb 4 '20 at 16:27