How to Overriding Mage_Catalog_Block_Product_View_Options_Type_Select.php in Magento

不羁的心 提交于 2019-12-11 17:48:10

问题


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.


回答1:


There are two way to do it

  1. 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.

  2. 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

Thanks



来源:https://stackoverflow.com/questions/32775361/how-to-overriding-mage-catalog-block-product-view-options-type-select-php-in-mag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!