i try to rewrite 'Mage_Catalog_Block_Product_View_Options_Type_Select' this catalog block but i got a error like

Fatal error: Call to a member function setTemplate() on boolean in app/code/core/Mage/Catalog/Block/Product/View/Options.php on line 197

below is my config.xml file code with file path.


<?xml version="1.0"?>

below is my Select.php file code with path.


class Eventprice_Meta_Catalog_Block_Product_View_Options_Type_Select
extends Mage_Catalog_Block_Product_View_Options_Type_Select
     * Return html for control element
     * @return string
    public function getValuesHtml()
       //function code as it is


1 Answer 1


Your rewrite class location name is wrong.

as per as your code class is located at app/code/local/Eventprice/Meta/Block/Catalog/Product/View/Options/Type/Select but you define it as Eventprice_Meta_Catalog_Block_Product_View_Options_Type_Select

It should be


Class is should be same with file path thus autoloader can understand it path when that file will load

  • Hey Amin if i want to change in custom options price then which file or template i need to rewrite? May 29, 2015 at 6:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.