renjii Posted August 21, 2013 Share Posted August 21, 2013 Hi The Featured product is always showing the older product on top and the newly added product at the bottom. May i know is there a way to sort the newly added product on top and the old item at bottom. Link to comment Share on other sites More sharing options...
renjii Posted August 21, 2013 Author Share Posted August 21, 2013 i found the solution for my question on this thread http://www.prestashop.com/forums/topic/212974-featured-products-sort-order/ by changing the code to the following // webmaster changes start // $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10)); $products = array_reverse($category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10))); // webmaster changes end On top of that i would like to know is there any module out there that can configure the position of the featured product. for eg which to show and on where Link to comment Share on other sites More sharing options...
vekia Posted August 22, 2013 Share Posted August 22, 2013 you can also define own position in the prestashop back office. just open the catalog > products page (1) select "filter by category" - (2) select "home" as filter. then you will see products attached to the home category. You can change position of them with (3): Link to comment Share on other sites More sharing options...
renjii Posted August 22, 2013 Author Share Posted August 22, 2013 Hi Vekia I've a problem even i sort the order. I set the number of featured product show to 20. I have more than 50 items in my product page. the problem now is the featured product will only show the oldest 20 not the newest 20. How do i fix that ? Link to comment Share on other sites More sharing options...
Recommended Posts