Ok so i built a module now I need to move it so it shows up as a tab in edit product
I tried creating directory
app/code/local/mycompanyname/adminhtml/Catalog/Product
with all the same sub directories and file structure of my original module
and in each of the files change the classes for example
edit.php
from
class <myCompany>_<moduleName>_Block_Adminhtml_<moduleName>_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
{
//clip
}
to
class <myCompany>_<moduleName>_Block_Adminhtml_Catalog_Product_Edit extends Mage_Adminhtml_Block_Catalog_Product_Widget_Form_Container
but nothing is showing up in my edit product ??
{
//clip
}
I suspect there are a couple of problems here.
Firstly, CamelCase naming for Namespaces and Modules will often fail silently in Magento. I assume you actually meant that the path is app/code/local/myCompanyname/moduleName/Block/Adminhtml/Catalog/Product? I suggest you recreate your module using all lowercase names.
Secondly, you need to update the layout xml for the
adminhtml_catalog_product_editandadminhtml_catalog_product_newto insert your Block. For a great example of how to do this, look atgoogleoptimizer.xmlinapp/design/adminhtml/default/default/layout. Pasting for reference:…