OpenCart - remove product counts in categories

15-Jan-2015By Suman Kumar

At times it has been required by your store or your client to hide the product count of each categories, as this does not give any meaning full information to the customer.

p.s: please note that the code shown in the snapshot as well as in attached vQmod and OCMod are tested and based upon default OpenCart theme, and this might not work exactly if your OpenCart theme is heavily customized or is not based on the OpenCart HTML conventions. However with some tweak and trick we can make any theme to work as expected.


so we can disable this by modifying a little bit code of opencart.

to do so open the file.
{root folder}>catalog> controller> module> category.php
remove -product-counts-module
then open the second file.
{root folder}>catalog> controller> product> category.php
remove -product-counts-products

now refresh your browser and its all gone.

remove -product-counts-after

If you have any questions or suggestion for this blog, please leave a comment below. I will get back to you ASAP. For contacting me please use the site's Contact form or you can directly mail me contact@devodee.com .

If you have any freelancing project|task on your mind, please be in touch with me here.
For my recent works please visit the portfolio section.