I want to override htdocsshopvendormagentomodule-catalogviewadminhtmltemplatescatalog.phtml
to
htdocsshopappdesignadminhtmlMagento_Catalogviewadminhtmltemplatescatalog.phtml
but i am not sure how to do this
I want to override htdocsshopvendormagentomodule-catalogviewadminhtmltemplatescatalog.phtml
to
htdocsshopappdesignadminhtmlMagento_Catalogviewadminhtmltemplatescatalog.phtml
but i am not sure how to do this
2
Answers
The Path should be
You need to create an admin theme and assign for the admin area
so first, we will create new admin theme.
Step1: Create a theme directory in the app/design/adminhtml/[Theme-Namespace]/[themename] and create theme.xml file. Put below code in theme.xml
Step2: Create registration.php in appdesignadminhtml[Theme-Namespace][themename] and add following code
Step3: Create folder Magento_Catalog in appdesignadminhtml[Theme-Namespace][themename]Magento_Catalog and
Step4: Create folder template in appdesignadminhtml[Theme-Namespace][themename]Magento_Catalogtemplates and
add this your file catalog.phtml
Now we need to assign new theme to admin area
Step1: Create a new module and create di.xml file app/code/Vendor/Module-Name/etc/di.xml
Step2: Create module.xml
Step3: Create registration.php file
Now run all command and check you changes.