I am working on the payment gateway. but I have a problem I did google research but couldn't find any solution I hope I'll get solution here so I am posting here

following my system.xml code block

<title translate="label">
    <comment><![CDATA[<img src="/media/billmate/images/billmate_bank_s.png" />]]></comment>

in this block problem is in comment tag right now here i put static link /media/billmate/images/billmate_bank_s.png please anybody suggest me how to make it dynamic


An element from system.xml can have a dynamic comment. The comment can be rendered through a model.
You need to declare the comment field like this:


Now you need to create the model with alias module/adminhtml_comment:

class Namespace_Module_Model_Adminhtml_Comment{
    public function getCommentText(){ //this method must exits. It returns the text for the comment
        return "Some text here";

Do your magic in the getCommentText method and return the result.

  • i am little bit busy but i'll make it accepted after test thanks @Marius for help me – user482 Nov 6 '13 at 12:54
  • <comment> <model>module/adminhtml_comment</model> </comment> i am unable to find where this tag should be placed – user482 Nov 6 '13 at 13:46

Your Answer

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