开发者

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


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 ?>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜