Skip to main content
added 1194 characters in body
Source Link
Akhilesh Patel
  • 4.5k
  • 2
  • 19
  • 30

EDIT

<?php if ($removeUrl = Mage::helper('layerednavigation')->getRemoveUrl($this->_filter)): ?>
<div class="filter-act">
    <a class="btn-remove" href="<?php echo $removeUrl ?>" title="<?php echo $this->__('Clear All') ?>"><?php echo $this->__('Clear All') ?></a>
</div>
<?php endif ?>

<ol>
<?php foreach ($this->getItems() as $_item): ?>

<?php if($_item->getLabel() == 'Hawkeye'):?>
    <?php continue; ?>
<?php endif;?>
    <li>
        <?php $inputId = $_item->getFilter()->getRequestVar().'_'.$_item->getValue() ?>
        <input type="checkbox" id="<?php echo $inputId ?>" name="<?php echo $_item->getFilter()->getRequestVar(); ?>" value="<?php echo $this->urlEscape($_item->getUrl(true)) ?>" <?php if ($_item->isSelected()):?>checked="checked"<?php endif ?> />
        <label for="<?php echo $inputId ?>"><?php echo $_item->getLabel() ?> 
            <?php if ($this->shouldDisplayProductCount()): ?>
            <span class="em_count">(<?php echo $_item->getCount() ?>)</span>
            <?php endif ?>
        </label>
    </li>
<?php endforeach ?>
</ol>

EDIT

<?php if ($removeUrl = Mage::helper('layerednavigation')->getRemoveUrl($this->_filter)): ?>
<div class="filter-act">
    <a class="btn-remove" href="<?php echo $removeUrl ?>" title="<?php echo $this->__('Clear All') ?>"><?php echo $this->__('Clear All') ?></a>
</div>
<?php endif ?>

<ol>
<?php foreach ($this->getItems() as $_item): ?>

<?php if($_item->getLabel() == 'Hawkeye'):?>
    <?php continue; ?>
<?php endif;?>
    <li>
        <?php $inputId = $_item->getFilter()->getRequestVar().'_'.$_item->getValue() ?>
        <input type="checkbox" id="<?php echo $inputId ?>" name="<?php echo $_item->getFilter()->getRequestVar(); ?>" value="<?php echo $this->urlEscape($_item->getUrl(true)) ?>" <?php if ($_item->isSelected()):?>checked="checked"<?php endif ?> />
        <label for="<?php echo $inputId ?>"><?php echo $_item->getLabel() ?> 
            <?php if ($this->shouldDisplayProductCount()): ?>
            <span class="em_count">(<?php echo $_item->getCount() ?>)</span>
            <?php endif ?>
        </label>
    </li>
<?php endforeach ?>
</ol>
Source Link
Akhilesh Patel
  • 4.5k
  • 2
  • 19
  • 30

I am not sure if you are using third party layered navigation or default Magento layered navigation.

In default Magento layered navigation in the file you can do something like this

app/design/frontend/base/default/template/catalog/layer/filter.phtml

<ol>
    <?php foreach ($this->getItems() as $_item): ?>
        <li>
            <?php if ($_item->getCount() > 0): ?>
                <a href="<?php echo $this->urlEscape($_item->getUrl()) ?>">
                    
                    <?php if($_item->getLabel() == 'Hawkeye'):?>
                        <?php continue; ?>
                    <?php endif;?>
                    
                    <?php echo $_item->getLabel() ?>
                </a>
            <?php else: echo $_item->getLabel() ?>
            <?php endif; ?>
            <?php if ($this->shouldDisplayProductCount()): ?>
                (<?php echo $_item->getCount() ?>)
            <?php endif; ?>
        </li>
    <?php endforeach ?>
</ol>

If your Magento using this file from base you will need to take it in your theme. If you are using third party module find your file and you can do same thing over there.