Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Overwrite Tabs
 
fishme
Jr. Member
 
Total Posts:  8
Joined:  2008-10-27
Linz
 

Hello,

I want to overwrite follow Class Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs, but if i try to overwrite the class the product screen is empty (Attachment)

here my config.xml:

<?xml version="1.0"?>  
<config>  
    <
modules>  
        <
Rup>  
            <
version>0.1.0</version>  
        </
Rup>  
    </
modules>  
    <global>  
        <
blocks>  
          <
adminhtml>
                <
rewrite>
                    <
catalog_product_edit>Rup_Adminhtml_Block_Catalog_Product_Edit</catalog_product_edit>
                    <
catalog_product_edit_tabs>Rup_Adminhtml_Block_Catalog_Product_Edit_Tabs</catalog_product_edit_tabs>
                </
rewrite>
            </
adminhtml>
        </
blocks>  
    </global>  
</
config>

and the class

class Rup_Adminhtml_Block_Catalog_Product_Edit_Tabs extends Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs
{

    
public function __construct()
    
{
        parent
::__construct();
    
}

    
protected function _prepareLayout()
    
{
        parent
::_prepareLayout();
        echo 
'XXX';
        
$this->addTab('checker', array( 'label' => 'Checkme''content' => 'Hello World', ));
        return 
parent::_prepareLayout();
    
}
}

What is here wrong - if you have an idea - post it smile

best greetings David

“Sorry for my bad English”

Image Attachments
edit_products.png
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top