To remove the ADD item button in the created custom module in the magento admin panel
File path:app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod.php
<?php
class Customer_Customerdetails_Block_Adminhtml_Customerdetails extends Mage_Adminhtml_Block_Widget_Grid_Container
{
public function __construct()
{
$this->_controller = 'adminhtml_customerdetails';
$this->_blockGroup = 'customerdetails';
$this->_headerText = Mage::helper('customerdetails')->__('Item Manager');
// $this->_addButtonLabel = Mage::helper('customerdetails')->__('Add Item');
parent::__construct();
$this->_removeButton('add');
}
} ?>
File path:app/code/local/Samplemod/Samplemod/Block/Adminhtml/Samplemod.php
<?php
class Customer_Customerdetails_Block_Adminhtml_Customerdetails extends Mage_Adminhtml_Block_Widget_Grid_Container
{
public function __construct()
{
$this->_controller = 'adminhtml_customerdetails';
$this->_blockGroup = 'customerdetails';
$this->_headerText = Mage::helper('customerdetails')->__('Item Manager');
// $this->_addButtonLabel = Mage::helper('customerdetails')->__('Add Item');
parent::__construct();
$this->_removeButton('add');
}
} ?>
Innverse.com provides high impact IT solutions to its onshore-offshore clients in a cost effective manner. We have a team of skilled professionals proficient in providing cutting-edge solutions that will help you to leap ahead of your competitors
ReplyDeleteInnverse Technologies is leading web development company in India offer web development solutions. Our work has earned us clients from across the globe and we make sure you get the value for your money and become part of our growing clients list.
"