3

I want to add a delete icon to the global messages in Magento 1.9. But it seems there is no template file for these messages (or at least, I can't find it in my installation and on the internet). Is there a way (preferably not using JavaScript (or jQuery) to append a button) to add a delete button to the messages?

3

override this block

app/code/core/Mage/Core/Block/Messages.php

To local

app/code/local/Mage/Core/Block/Messages.php

and do changes here.

3

There is a free extension for that. It allows you to show the session messages as floating divs and adds a close button to them, or it can even close the messages after a number of seconds.

If you don't want an extension, you can rewrite the method getGroupedHtml from the class Mage_Core_Block_Messages and insert your button in there.

  • do you have any idea who's the developer of that module :) – Baby in Magento Dec 8 '16 at 11:54
  • you are wrong @QaisarSatti , he is tzyganu much better developer than Marius :) – Baby in Magento Dec 8 '16 at 12:02
  • @BabyinMagento it is username tzyganu check the name Marius Strajeru – Qaisar Satti Dec 8 '16 at 12:04

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.