B-219 Sec-55 Noida, India
+918010221733

How to remove “Add Item” button in a module in magento

Go to app/code/local/ModuleDirectoryName/ModuleName/Block/AdminHtml/Modulename.php and add
the below given code after parent::__construct();

 parent::__construct();
 $this->_removeButton(‘add’);

Imp: The code highlighted in red depends upon your module

 Say thanks if it helps you 🙂

(Visited 37 times, 1 visits today)

Leave a reply