Here I already created the button

if ($this->_isAllowedAction('custom_Mpquotesystem::mpquotes')) {
                __('Delete Quote')

        } else {

When I am changing the label name it works

But when I copied this code to the other place and changed the button_id it is not working. and also I want to know how this works

  • Where you have copied and on which module you have copied? What is the error you are getting? – Sukumar Gorai Mar 14 at 11:35
  • custom module in magento admin – prabhakaran7 Mar 14 at 11:52
  • they already added block/edit/edit.php with my question code i copied to below the line pasted but not showing any button – prabhakaran7 Mar 14 at 11:54
  • Check this if ($this->_isAllowedAction('custom_Mpquotesystem::mpquotes')) code. I think its not allowed. – Sukumar Gorai Mar 14 at 12:34
  • hoooo.................. – prabhakaran7 Mar 14 at 12:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.