dorje Posted July 17, 2013 Share Posted July 17, 2013 (edited) Hi all I have a store built in PrestaShop™ 1.4.7.3. Actually i want to show subcategories of a category when i click on the categories page. The problem is when i click on the category page it shows the product which is added on that category and when i shift them to their sub categorie then the category shows no products available which is very bad and like crap. Please help on this. i found about this topic< http://www.prestasho...-category-page/ > but the solution was not there and topic is marked as solved . hahaha Edited July 17, 2013 by dorje (see edit history) Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 17, 2013 Share Posted July 17, 2013 Hi there, So if you add the product into two categories, and one that you set the default product appears only in the default? Link to comment Share on other sites More sharing options...
dorje Posted July 17, 2013 Author Share Posted July 17, 2013 No not only in the default it shows everywhere no matter of dual categories. Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 17, 2013 Share Posted July 17, 2013 In that case, I do not understand what you mean. Want to hide subcategories? Link to comment Share on other sites More sharing options...
dorje Posted July 17, 2013 Author Share Posted July 17, 2013 No i want to show subcategories this is my site http://www.gurkha-kukri.com and the one of the category is nepalese kukri< parent > nepal army kukri and famer kukri <2 sub category.> So when i click on the parent category nepalese kukri i want to show the nepal army kukri and famer kukri as sub categories , and don't want to show the product directly.but right now the products are being displayed in the main category. So when i move the products to their sub cagtegories then i click on the parent category then it shows "there are no products". Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 17, 2013 Share Posted July 17, 2013 If you don't want show any products directly if category has subcategories you can easly doing that by using code like this: category.tpl {if !isset($subcategories)} here are code where PrestaShop include product-list.tpl etc. {/if} 1 Link to comment Share on other sites More sharing options...
dorje Posted July 17, 2013 Author Share Posted July 17, 2013 Ya i know that and there are lots of code which need to be correct to show the thing i want . I cant mess with them as they can make your pages normal to worse. i just need a solution Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 17, 2013 Share Posted July 17, 2013 A lot of code? You need to add two lines of code if you don't want show products on any category who has subcategories. Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 i checked website mentioned by dorje, an i just thinking, when you disable the products, then when someone will browse the "Parent" category it will be empty, like this: it's not good I think Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 17, 2013 Share Posted July 17, 2013 There should be the icons / links to subcategories Sort by / compare etc. should be also hidden. Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 but by default there is no subcategories as you can see, "parent" category shows only products, no subcats at all Link to comment Share on other sites More sharing options...
dorje Posted July 17, 2013 Author Share Posted July 17, 2013 @vekia not eactly but similar. My condition is when i list products in the main categories then when a visitor click the category then it shows the products listed in those categories directly but when i move those products into their sub categories then the main categories shows there are no products. @vekia it can be done watch out this site http://www.kathmanduclothing.com Link to comment Share on other sites More sharing options...
dorje Posted July 17, 2013 Author Share Posted July 17, 2013 I did it Problem solved Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 thanks for confirmation, can you share the solution? or maybe you just followed Krystian's suggestions above? Link to comment Share on other sites More sharing options...
vigoss99 Posted May 18, 2014 Share Posted May 18, 2014 I did it Problem solved Hi, how did you solve this? Thanks Link to comment Share on other sites More sharing options...
dorje Posted August 4, 2016 Author Share Posted August 4, 2016 Just remove the "display:none" in css of global.css in your theme directory. #subcategories { /* display: none; */ Link to comment Share on other sites More sharing options...
Recommended Posts