Jump to content

[SOLVED] There are no products.


Recommended Posts

Hello, I have a problem. I have a category (MEN) with 3 subcategories (TSHIRTS, JERSEYS, SOCKS). I have 50 products in each of the 3 subcategories (TSHIRTS, JERSEYS, SOCKS) and when I see the mother-category (MEN) there is a message in the top that says "There are no products.". Why? How can I show an addition of the products from the 3 categories?

Sorry for my english.

Thanks!!!.

Link to comment
Share on other sites

The best and easy way to change the message.
if there is no product in the category, but there are some sau-categories, then hide the message "there are no products".
This message should only appear when there is no products and no sub-categories in the category.

If you want to go this way, please make change at file /themes/yourtheme/category.tpl


Replace this line

           {if $nb_products == 0}{l s='There are no products.'}



with following 4 lines

           {if $nb_products == 0}
               {if  !isset($subcategories)}
               {l s='There are no products.'}
               {/if}

Link to comment
Share on other sites

  • 3 weeks later...

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...