Step 6) Create sales_order_view.xml file from Learning/RewriteSales/view/layout folder and write the below code Step 5) Create module.xml file to specify the setup version Step 2) Create Custom.php Class in Block Step 1) Enable the extension to specify the config.php file from the app/etc folder Like this, you can extend any module which one you want. I'm given example here of how to extend the sales order view page. Help me in detail on how to extend Magento2 admin template files ![]() ![]() C:/xampp/htdocs/NewMagento2/app/code//Magento/Customer/view/adminhtml/templates/tab/view.phtml However i tried this by placing the required phtml files, but it is not showing from my path, its taking from default magento path.Ĭ:\xampp\htdocs\NewMagento2\app\design\adminhtml\vendor\backend\Magento_Customer\layout\customer_form.xml Ĭ:\xampp\htdocs\NewMagento2\app\design\adminhtml\Vendor\backend\Magento_Customer\templates\tab\view.phtml getChildHtml() Īnd if i use templatehints from backend still its showing from magento default i.e. So I want to write on design/adminhtml/vendor/backend and module specific folders. If I extend the file at design/adminhtml/Magento/backend it may override in Magento upgrades version. ![]() I could not find how to extend backend template files in Magento 2, however i have found how to extend frontend template files from here.
0 Comments
Leave a Reply. |