开发者

custom attribute UI in Magento admin

I'm trying to change the way Magento shows options of an attribute with multiple select. I have 10K options for this attribute. How can I override the UI and use an Ajax based UI? The admin will be able to filter options a开发者_开发知识库nd present only ~20 each time. I know how to use js and php for this but not in Magento.

Thanks


You can try to rewrite block class responsible for this attribute.

<global>
        <blocks>
            <adminhtml>
                <rewrite>
                     <catalog_product_edit_tabs_price>Company_Module_Block_Adminhtml_Tabs_Price</catalog_product_edit_tabs_price>
                </rewrite>
            </adminhtml>
</blocks>
</global>

Then in your Company_Module_Block_Adminhtml_Tabs_Price you can re-declare function responsible for logic for price attribute (for example).

You should have a good knowledge of Magento for this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜