Magento – Display Current Category Name and Total Products in ToolBar

a simple and yet effective  requirement – Display Current Category Name and Total Products(under current category) in Toolbar

  1. Go to below path and find toolbar.phtml

/demo/app/design/frontend/default/yourtheme/template/catalog/product/list/toolbar.phtml

  1.  Add below line of code, focus on bold text to use in your code.
<div class="total">

<span class="category-name">

<?php $currentCategory = Mage::registry("current_category"); echo $currentCategory->getName(); ?></span>

<span class="items">-

<em class="color">

<?php echo $this->getCollection()->getSize() ?></em> items</span>

</div>

Hope this help…Happy Coding!!!!

(Visited 59 times, 1 visits today)