Making a field readonly in Catalog -> Manage Product -> General tab?

I have added a new field named category with a text box in Catalog -> Manage Product -> General tab, via the Manage Attributes and Attribute Sets tab. I want to make this field readonly. Please help me anyone. How can I do this, and tell me the page source.

Thanks

One thought on “Making a field readonly in Catalog -> Manage Product -> General tab?”

  1. solved that problem..by changing

    app/design/adminhtml/default/default/template/catalog/form/renderer/fieldset/ele­ment.phtml
    file like

    $_element = $this->getElement() ?> checkFieldDisable()

    // START: My Change
    if((strpos(trim($this->getElementHtml()), ‘”categories”‘) !== false))

    {

    $_element->setDisabled(true);

    }
    // END: My Change ?>

Leave a Reply

Your email address will not be published. Required fields are marked *