问题
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
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
Thanks
来源:https://stackoverflow.com/questions/32775361/how-to-overriding-mage-catalog-block-product-view-options-type-select-php-in-mag