0

How to override the Enterprise_PageCache_Model_Container_Viewedproducts class in Magento 1 in custom module?

I have tried with config.xml as follows but it does not work,

<?xml version="1.0"?>
<config>
    <modules>
        <Local_Overrides>
            <version>0.1.0</version>
        </Local_Overrides>
    </modules>
    <global>
        <models>
            <enterprise_pagecache>
                <rewrite>
                    <container_viewedproducts>Local_Overrides_Model_Container_Viewedproducts</container_viewedproducts>
                </rewrite>
            </enterprise_pagecache>
        </models>
    </global>
</config>

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.