How to – delete “0 products” text header in categories pages
by John on Nov.06, 2009, under Hints/Tips/Hacks
On the top of every category page it displays how many products are listed in that category, even if there aren’t any products.
In the category.tpl if you look for the following line of code:
{$nb_products|intval} {if $nb_products>1}{l s=‘products’}{else}{l s=‘product’}{/if}
and change it too:
{if $nb_products>0}{$nb_products|intval} {if $nb_products>1}{l s=‘products’}{else}{l s=‘product’}{/if}{/if}
This will still display how many products are in the category, aslong as there is some.
Related posts:



December 4th, 2009 on 8:14 am
great post as usual .. thanks .. you just gave me a few more ideas to play with
May 17th, 2010 on 2:09 pm
Thanks for the Tip, saved me time in finding out. Please note that your browser or editor may change the ‘and so code may not work correctly. Just a note to check this…
Cheers, Al