0


I want to override Mage_Catalog_Block_Product_View_Type_Configurableclass.
I have created one module : Ved_Catalog
Here are my module files:
Code from config.xml :

<config>
<global>
        <blocks>
            <catalog>
                <rewrite>
                    <product_view_type_configurable>
                        Ved_Catalog_Block_Product_View_Type_Configurable
                    </product_view_type_configurable>
                </rewrite>
            </catalog>
        </blocks>
    </global> 
</config>


code in Configurable.php :

class Ved_Catalog_Block_Product_View_Type_Configurable extends Mage_Catalog_Block_Product_View_Type_Configurable
{
...
}


But this code is not working. I am not getting what I am doing wrong here.

  • 4
    put <product_view_type_configurable>Ved_Catalog_Block_Product_View_Type_Configurable</product_view_type_configurable> one one single line – Marius Jul 1 '16 at 16:10
  • Yes.. It is working now. Thank you very much @Marius for your help. – vedu Jul 1 '16 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.