1

I have overridden "List" block by following code

    <catalog>
        <rewrite>
            <product_list>NameSpace_ModuleName_Block_Product_List</product_list>
        </rewrite>
    </catalog>

Also I have added "List.php" under the same structure, but product list is not getting displayed.

1

Check your config file properly here is the below example

<config>
    <modules>
        <Namespace_Modulename>
            <version>1.0.0</version>
        </Namespace_Modulename>
    </modules>
    <global>
        <blocks>
            <namespace_modulename>
                <class>Namespace_Modulename_Block</class>
            </namespace_modulename>
            <catalog>
                <rewrite>
                    <product_list>Namespace_Modulename_Block_Product_List</product_list>
                </rewrite>
            </catalog>
        </blocks>
    </global>
</config>

Moreover check if the block is not overridden by some other module.

1
  • Yes suggestion worked. Actually it was overridden in another module, that's why it wasn't working. – Mrunmay Deswandikar Dec 27 '16 at 5:11

Your Answer

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

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