vitalik82 Posted March 29, 2010 Share Posted March 29, 2010 I only have a small number of products (5), that fall into one category. So I don't need to create any subcategories.I want all my products to show up in the "Categories block" under the "Home" category.I tried assigning all my products to the "Home" category, but they are not showing.Please advice on how to resolve this. Link to comment Share on other sites More sharing options...
Divine Posted March 29, 2010 Share Posted March 29, 2010 Hi,Then you can just use the homefeatured module. Link to comment Share on other sites More sharing options...
vitalik82 Posted March 29, 2010 Author Share Posted March 29, 2010 Hi,Then you can just use the homefeatured module. Thats not what I was looking for. Is there any other options?I want the products to be shown inside the "Categories block". Link to comment Share on other sites More sharing options...
vitalik82 Posted April 5, 2010 Author Share Posted April 5, 2010 UPAnyone? Can someone maybe advice me on where to find the code responsible for it? Link to comment Share on other sites More sharing options...
trusktr Posted January 14, 2011 Share Posted January 14, 2011 I too have this problem.If i go to the "home" category page, there are no products visible.For example, take a look here:http://bettafootwear.com/CrownYourFeet/shop/1-homeNo products are visible. How can I change it so that if the user visits the "home" category page, that it will show ALL products?Please not that i've made sure i put a checkmark next to "home" when creating all the products, but that has no effect. Link to comment Share on other sites More sharing options...
rocky Posted January 15, 2011 Share Posted January 15, 2011 It looks like PrestaShop purposely doesn't display "Home" category products. Change lines 62-68 of category.php from: if ($category->id != 1) { $nbProducts = $category->getProducts(NULL, NULL, NULL, $orderBy, $orderWay, true); include(dirname(__FILE__).'/pagination.php'); $smarty->assign('nb_products', $nbProducts); $cat_products = $category->getProducts(intval($cookie->id_lang), intval($p), intval($n), $orderBy, $orderWay); } to: $nbProducts = $category->getProducts(NULL, NULL, NULL, $orderBy, $orderWay, true); include(dirname(__FILE__).'/pagination.php'); $smarty->assign('nb_products', $nbProducts); $cat_products = $category->getProducts(intval($cookie->id_lang), intval($p), intval($n), $orderBy, $orderWay); Link to comment Share on other sites More sharing options...
trusktr Posted January 19, 2011 Share Posted January 19, 2011 Thank you rocky! This is exactly what I was looking for!!Perhaps that should be an option somewhere in the preferences?I think it would at least be better to remove that if{} wrapper so if a customer lands on the "home" category page they will at least see product and it will be that much closer to a potential purchase. Link to comment Share on other sites More sharing options...
Vivek Presta Shop Posted July 12, 2011 Share Posted July 12, 2011 HiThis is great idea, But could anyone please help to achieve this in Prestashop recent version PS1.4.3Awaiting to hear from youRegardsVivek Sakhilati Link to comment Share on other sites More sharing options...
rocky Posted July 12, 2011 Share Posted July 12, 2011 The code is the same, but it's been moved to lines 135-141 of controllers/CategoryController.php in PrestaShop v1.4.3. Link to comment Share on other sites More sharing options...
Vivek Presta Shop Posted July 12, 2011 Share Posted July 12, 2011 Excellent...You are the best..It worked RegardsVivek Sakhilati Link to comment Share on other sites More sharing options...
trusktr Posted July 15, 2011 Share Posted July 15, 2011 The code is the same, but it's been moved to lines 135-141 of controllers/CategoryController.php in PrestaShop v1.4.3. Is there any way can just get rid of that from the source? Having zero products appear on the "home" category page seems like a bad idea.... You'd think that displaying all products would be much better...I bet hardly anyone would then ask how to hide all products (and thus lessen their chance of selling). Link to comment Share on other sites More sharing options...
platnumcn Posted September 9, 2011 Share Posted September 9, 2011 Tried the code in 1.44, not work. Link to comment Share on other sites More sharing options...
gingan Posted September 14, 2011 Share Posted September 14, 2011 Tried the code in 1.44, not work. Likewise here, and I'm sadly not yet familiar enough with PrestaShop to figure this out for myself yet (only been plugging away at this for a couple of weeks!) I appreciate I'm just being a greedy noob here, but I don't suppose anyone's able to shed any light on the subject are they? I suspect I'll just end up hard-coding direct links (oh no!) as the shop I'm working on only has a handful of products. Thanks! Link to comment Share on other sites More sharing options...
meowchie Posted September 6, 2012 Share Posted September 6, 2012 How about in prestashop version 1.4.8.3? 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