Dang Xinh Posted September 4, 2011 Share Posted September 4, 2011 Default of Module Home Feature is showing the oldest product first. How to show the newest product first? Please lead me know! Thank you so much. Link to comment Share on other sites More sharing options...
ludo Posted September 4, 2011 Share Posted September 4, 2011 Hi Dang, the module "Home Featured" does not display items according to the date but the order you set (position) Link to comment Share on other sites More sharing options...
Dang Xinh Posted September 4, 2011 Author Share Posted September 4, 2011 I searched on internet. I could show products on Home Featured at random by changing from $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10)); to $products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10), 'date_add', 'DESC', false, true, true, $nb); on homefeatured.php Although I don't know about it, but I think 'DATE_ADD', 'DESC', false, true, true, $ nb);" related to product placement. Hope you or someone know and show me how to change to display products in the order last time (days at least) to oldest (on increasing). Thank you so much! Link to comment Share on other sites More sharing options...
Paul Bogdan Posted September 4, 2011 Share Posted September 4, 2011 I have a problem with featured module, I don't know how to fix it, I've been searching for hours but nothing. Does anyone knows about an empty space under the featured products module...? see the screenshoot Link to comment Share on other sites More sharing options...
Paul Bogdan Posted September 4, 2011 Share Posted September 4, 2011 screenshot Link to comment Share on other sites More sharing options...
Paul Bogdan Posted September 4, 2011 Share Posted September 4, 2011 Link to comment Share on other sites More sharing options...
diana13 Posted September 4, 2011 Share Posted September 4, 2011 Just go in themes -> yourtheme -> global.css find #center_column .products_block { color: #595a5e } and replace with #center_column .products_block { color: #595a5e; height:50px; } Eventualy you can play arround those 50px to fit your needs. 1 Link to comment Share on other sites More sharing options...
Paul Bogdan Posted September 5, 2011 Share Posted September 5, 2011 Thanks Diana, that works Link to comment Share on other sites More sharing options...
Dang Xinh Posted September 5, 2011 Author Share Posted September 5, 2011 Sorry, I still have understood clearly. But I understood what ludo said, instead of sorting by date, we can sort products by placement (ID) So, how to sort products by ID? Thank you! Link to comment Share on other sites More sharing options...
Paul Bogdan Posted September 7, 2011 Share Posted September 7, 2011 Just go in themes -> yourtheme -> global.css find #center_column .products_block { color: #595a5e } and replace with #center_column .products_block { color: #595a5e; height:50px; } Eventualy you can play arround those 50px to fit your needs. unfortunately it does not working on IE 8... Link to comment Share on other sites More sharing options...
diana13 Posted September 7, 2011 Share Posted September 7, 2011 After height: 50px; add _height: 50px; (with underscore) In some IE version this works. Link to comment Share on other sites More sharing options...
fededd21 Posted August 12, 2012 Share Posted August 12, 2012 look here http://www.prestashop.com/forums/topic/182131-homefeatured-random-ogni-giorno/ by mercatino a casa.it Link to comment Share on other sites More sharing options...
Recommended Posts