jcmht Posted May 29, 2008 Share Posted May 29, 2008 Hi everyone, i am cris, i have post a mess. in french forum, but anyone respond me ... :- I would like to know, how can i random product on home page , as right block promotion ? Because if i don't change them manually, they are always the same ! it's not very good. anyone can help me , please ? Best regards, Cris Link to comment Share on other sites More sharing options...
mEcommerce Posted May 30, 2008 Share Posted May 30, 2008 Hi jcmht, As far as I know the dev team is going to implant this feature in feature releases. Link to comment Share on other sites More sharing options...
jcmht Posted May 30, 2008 Author Share Posted May 30, 2008 Hi jcmht, As far as I know the dev team is going to implant this feature in feature releases. Hi, Thanks for ur answer, i didn't know it, sorry , but i have good news, a nice man adds a reply in french forum ! http://www.prestashop.com/forum/index.php?topic=2452.new;topicseen#new if u have the same problem as me, read it ! but : Attention , when u will install a new version of Presta, u lose this modification. If Team Presta will include Random far product in the next version, Ok, u haven't need this code But at this time, (now) if u have a v1 RC3, as me, far products aren't Random, so u can add this code ! Sorry for my english, i try to be best, but with my age, it's a little difficult Have a nice day ! PS: my translation in french/English .................. To do that, Open the file : "modules/homefeatured/homefeatured.php" and : // Replace this line (in "hookHome") $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10)); // To $products = $category->getProducts(intval($params['cookie']->id_lang), 1, 1000); shuffle($products); array_splice($products, ($nb ? $nb : 10)); NB : During the update Prestashop this file will be crushed, make a backup of this change, or create a new module for this function Link to comment Share on other sites More sharing options...
Recommended Posts