如何在Magento中覆盖Mage_Catalog_Block_Product_View_Options_Type_Select.php [英] How to Overriding Mage_Catalog_Block_Product_View_Options_Type_Select.php in Magento
问题描述
我是Magento的新用户(自定义).我想覆盖本地文件夹中的Mage_Catalog_Block_Product_View_Options_Type_Select.php文件.直到我正在执行最重要的功能.
I am new user of Magento (in customization). I want to override Mage_Catalog_Block_Product_View_Options_Type_Select.php file in local folder. Till I am doing overriding functionality.
任何人都可以建议我应遵循哪些步骤来覆盖此文件.并覆盖需要在本地文件夹中添加的其他文件.
Please can any one suggest me which steps should I follow for override this file. And for overriding which other files need to add in local folder.
推荐答案
有两种方法
-
如果您只想覆盖块,然后将该文件从core复制到本地文件夹,请保持与core相同的文件夹结构.
if you want to just override block then copy that file from core to your local folder, please maintain the same folder structure as core.
第二种方式,我认为这是通过创建扩展程序的简单方法,您可以从此处获取更多详细信息
second way I think this is the bese way to do it by creating an extension you can get more details from here
http://inchoo.net/magento/overriding -magento-blocks-models-helpers-and-controllers/
让我知道您是否有任何疑问
Let me know if you have any query
谢谢
这篇关于如何在Magento中覆盖Mage_Catalog_Block_Product_View_Options_Type_Select.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!