ada2113 Posted April 25, 2013 Share Posted April 25, 2013 can you help me with an free module for featured category - on home page? Link to comment Share on other sites More sharing options...
vekia Posted April 25, 2013 Share Posted April 25, 2013 What you exactly expect? You want to display featured product from selected category? Link to comment Share on other sites More sharing options...
yaumh Posted May 23, 2013 Share Posted May 23, 2013 yes, i am looking for one too. To display products from selected category just like homefeatured module. Any ideas pls? Link to comment Share on other sites More sharing options...
Oron Posted May 23, 2013 Share Posted May 23, 2013 Hello Topic moved to english forum prestashop1.5 Link to comment Share on other sites More sharing options...
vekia Posted May 23, 2013 Share Posted May 23, 2013 yes, i am looking for one too. To display products from selected category just like homefeatured module. Any ideas pls? to achieve what you want - you can edit homefeatured module Link to comment Share on other sites More sharing options...
SmartDataSoft Posted May 24, 2013 Share Posted May 24, 2013 yes, i am looking for one too. To display products from selected category just like homefeatured module. Any ideas pls? yaumh, we have a module for show category product but that is not free, that is a premium module . Link to comment Share on other sites More sharing options...
vekia Posted May 24, 2013 Share Posted May 24, 2013 but it's really easy to achieve without additional module :| in the homefeatured.php file you've got something like: $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); put the category ID instead the Context::getContext()->shop->getCategory() for example: $category = new Category(3, (int)Context::getContext()->language->id); code above displays products from category ID = 3 Link to comment Share on other sites More sharing options...
Dallerdkj Posted June 12, 2013 Share Posted June 12, 2013 Hello. I cant get your code to work. My problem is that Home featured displays even excluded cat from other multi shops. Are you sure your code is right? Link to comment Share on other sites More sharing options...
Dallerdkj Posted June 12, 2013 Share Posted June 12, 2013 Lol, never mind. It works! ^^ Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 many thanks for information that it works for you im convinced that this piece of code will be useful for other merchants regards! Link to comment Share on other sites More sharing options...
Dallerdkj Posted June 12, 2013 Share Posted June 12, 2013 Yes, thanks for sharing. Without it, i would have been lost Its defenetly helpfull Link to comment Share on other sites More sharing options...
miriama Posted June 17, 2013 Share Posted June 17, 2013 Hi, thank you for sharing the solution with us. The code works, but I have another problem: my e-commerce has 2 language, italian and english. As I select the italian language everyhing is ok, I see the product of the category I choose, instead as I select the english language there is no products in the category. Could you please help me? Thank you in advance, Regards Miriam Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 you mean, that you changed language to english in your front office (you clicked on the english flag) and then - no product appear? what is your default language in front office? Link to comment Share on other sites More sharing options...
miriama Posted June 18, 2013 Share Posted June 18, 2013 Hi Vekia, thanks a lot for your replay. Yes, I mean if I click on the english flag no product appear in the home feautured module. The default language is italian. Link to comment Share on other sites More sharing options...
pralexandre Posted June 23, 2013 Share Posted June 23, 2013 Thanks the tip Long time try found solution for this Link to comment Share on other sites More sharing options...
vekia Posted June 23, 2013 Share Posted June 23, 2013 your issue, miriama, may be related to the cache in your store. Im not sure at all but you can try to clear cache (remove the files from cache/smarty/cache & from cache/smarty/compile) Link to comment Share on other sites More sharing options...
miriama Posted June 24, 2013 Share Posted June 24, 2013 Thanks Vekia for your replay. Unfortunaly I have already tried to clear my cache but it doesn't work anyway. Link to comment Share on other sites More sharing options...
q-skins.dk Posted November 29, 2013 Share Posted November 29, 2013 but it's really easy to achieve without additional module :| in the homefeatured.php file you've got something like: $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); put the category ID instead the Context::getContext()->shop->getCategory() for example: $category = new Category(3, (int)Context::getContext()->language->id); code above displays products from category ID = 3 Is it possible to do this trick for prestashop 1.4.8? Link to comment Share on other sites More sharing options...
vekia Posted December 1, 2013 Share Posted December 1, 2013 yes it is, it works very similar, in 1.4 there is no context object only, just use other category id, will work then Link to comment Share on other sites More sharing options...
Recommended Posts