Pablo.pc Posted January 13, 2011 Share Posted January 13, 2011 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 More sharing options...
Tomas Jancik Posted January 13, 2011 Share Posted January 13, 2011 when you're creating each product, you can select in which categories it should apprear... Link to comment Share on other sites More sharing options...
shokinro Posted January 13, 2011 Share Posted January 13, 2011 One product could belong to multiple products. You can set all product belong to sub-category also belong to the parent category, in this way, the message will not be displayed, in stead, your products and sub-categories will be displayed. Link to comment Share on other sites More sharing options...
Pablo.pc Posted January 13, 2011 Author Share Posted January 13, 2011 Thanks, but I don´t want to show each product of each subcatergory in the category page. I want to show only the subcategories and the total number of products. Is possible? Link to comment Share on other sites More sharing options...
shokinro Posted January 13, 2011 Share Posted January 13, 2011 I think it is possible. But it will require some code change. Please search the forum maybe you can find some similar solution there. Link to comment Share on other sites More sharing options...
shokinro Posted January 13, 2011 Share Posted January 13, 2011 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.tplReplace 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 More sharing options...
Pablo.pc Posted January 13, 2011 Author Share Posted January 13, 2011 Thanksss!!!!!Solved!!! Link to comment Share on other sites More sharing options...
Simon-AV Posted January 31, 2011 Share Posted January 31, 2011 Thanks for this! Had same problem but now I've sorted it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now