PHP Magento Tips

How to Remove or Rename ‘Add New’ Button From Admin Grid In Magento ?

Rate this posting:
{[['']]}

Rename 'Add New' button:

Here are the steps to rename the ‘Add New’ Button in Admin Grid:
Go to YourNamespace -> YourModule -> Block -> Adminhtml -> YourFile.php

– Add the following code in this file:-

$this->_updateButton('add', 'label', Mage::helper('yournamespace_yourmodule')->__('Add Custom Name'));

– You are done.

Remove 'Add New' button

Here are the steps to remove the 'Add New' button:-

– Go to YourNamespace -> YourModule -> Block -> Adminhtml -> YourFile.php
– Add the following code in this file (it should be just below the call to parent constructor):-

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


– You are done.
Tag : Magento
0 Comments On "How to Remove or Rename ‘Add New’ Button From Admin Grid In Magento ?"

Back To Top