0

I have the following code that produces the output of the attribute filter in layered - as well as the name of the attribute it also produces the count of products associated with the specific attribute.

I am trying to remove the count next to each attribute (e.g. T-Shirts (1), Shorts (2) etc.). But I cannot for the life of me figure out where the $item phtml is being sourced.

FILTER_ATTRIBUTE.PHTML

<?php 
$items        = $this->getFiltersArray();
$displayStyle = $this->getColumnsNum(); 
?>


    <ol>
    <?php if ($displayStyle <=1): // one column ?>
        <?php foreach ($items as $_item): ?>

            <li><?php echo $_item?></li>     

        <?php endforeach ?>
    <?php endif ?>
    </ol>

1 Answer 1

1

Below files you can easly get the code.

span class="count"(getCount() ?>)

Go to following paths: template\catalog\layer 1)List.phtml 2)filter.phtml

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.