开发者

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

开发者 https://www.devze.com 2023-02-17 06:54 出处:网络
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 readon

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

精彩评论

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

关注公众号