Summary
This blog post explains how to output the total number of active products in a Magento category toolbar using a simple code snippet. By adding this to the toolbar.phtml file, store owners can improve user experience by giving customers a clear product count without relying on pagination. The solution is tested in Magento CE 1.9.2.0, and CMS Live offers expert support for Magento web development and design.
2 minutes read
You will learn 
  • How to display the total number of active products in a Magento category toolbar.
  • Where to add the code snippet in Magento CE 1.9.2.0.
  • Improve user experience by giving customers a clear product count.

A Lancashire client recently asked us to enhance their Magento store by improving the functionality of their category pages. They had a large number of products in each top-level category and wanted to display the total number of active products. This would give customers a clearer visual indication of the total product count, rather than relying on pagination.

Our solution was to output the total number of active products in the Magento category toolbar.

To achieve this, simply add the following snippet of code towards the bottom of your toolbar.phtml file, located in:

template/catalog/product/list

Tested in Magento CE 1.9.2.0.

Need Help with Your Magento Website?

With years of experience in Magento development and eCommerce design, we ensure your store has the right balance of functionality, product imagery, and content to maximise sales.

If you need Magento web development or design support, contact us for a friendly chat—we’re happy to help!