I've tried rewriting catalog_blocks_layer_view with this config in a module (the module is turned on and works.) but my rewrite isn't rewriting and I'm not getting any errors. Does anyone know what could be up? Thank you!


<?xml version="1.0"?>


class Company_Mods_Block_Catalog_Layer_View extends Mage_Catalog_Block_Layer_View {
    public function getFilters()
        $filters = array();

        $filterableAttributes = $this->_getFilterableAttributes();
        foreach ($filterableAttributes as $attribute) {
            $filters[] = $this->getChild($attribute->getAttributeCode() . '_filter');

        return $filters;

1 Answer 1


Your config.xml looks correct. That means one, or many, or all, of the following are true

  1. You're missing the module's app/etc/module/* declaration file,

  2. You have your block class in the incorrect location

  3. Your block actually is rewritten, but you think it's not for an incorrect reason

Download this working Company_Mods module and diff it vs. your module. If there are no differences, come back and tell us why you think your module is not working.

  • 2
    Or there is already another extension overwriting the block. May 14, 2013 at 7:25
  • Hmmm, I must be expecting functionality that isn't making sense. I edited your module to have the code I've added above, and it's still having no affect. I'm attempting to remove the top "categories" from the filterable left nav. This is a clean install so there shouldn't be anything overwriting this block already.
    – Lethjakman
    May 14, 2013 at 15:36

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.