Jump to content

How to remove the sentence "there are no products" from category title


Recommended Posts

Change lines 7-14 of category.tpl in your theme's directory from:


   {if $nb_products == 0}{l s='There are no products.'}
   {else}
       {if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} 
       {$nb_products} 
       {if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if}
   {/if}
{/strip}



to:

{*
   {if $nb_products == 0}{l s='There are no products.'}
   {else}
       {if $nb_products == 1}{l s='There is'}{else}{l s='There are'}{/if} 
       {$nb_products} 
       {if $nb_products == 1}{l s='product.'}{else}{l s='products.'}{/if}
   {/if}
*}{/strip}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...