nekomiao Posted December 31, 2010 Share Posted December 31, 2010 Hi, May i know how can i change the product list display at Home Page is front latest added to oldest product? Now all product show in my home page is oldest product... cry...~ Link to comment Share on other sites More sharing options...
shokinro Posted January 1, 2011 Share Posted January 1, 2011 I think you can change this at your back office.1. You must know that all product in Home category will be displayed in home page. You should only add those products to category "Home" that you want them to be displayed at home page You can do this at back office catalog tab2. The number of products displayed can be set at following go Modules tab look for Featured Products on the homepage module click configure and set Number of product displayed and save it Link to comment Share on other sites More sharing options...
rocky Posted January 1, 2011 Share Posted January 1, 2011 Go to the Preferences > Products tab and change the "Order way" to "Descending". If that doesn't work, or you want to override the setting just for the featured products, change line 72 of modules/homefeatured/homefeatured.tpl 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'); 2 Link to comment Share on other sites More sharing options...
nekomiao Posted January 1, 2011 Author Share Posted January 1, 2011 thanks ~ i had solved the problem by using rocky's method~ Link to comment Share on other sites More sharing options...
abella1 Posted December 28, 2011 Share Posted December 28, 2011 Would Ricky's method work on 1.4.6.2? I am unable to find "$products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10), 'date_add', 'DESC'); under line 72 of modules/homefeatured/homefeatured.tpl . Please help? My features products are showing bunch old products. I want them show newly added products. Thanks! 1 Link to comment Share on other sites More sharing options...
shokinro Posted December 28, 2011 Share Posted December 28, 2011 yes, it should work. The line # in 1.4.6.2 is 99 instead of 72. (assume you have not changed anything yet). Link to comment Share on other sites More sharing options...
abella1 Posted December 28, 2011 Share Posted December 28, 2011 Found it. It's under homefeatured.php not homefeatured.tpl . I was looking at the wrong place. Thanks. I spend all days look for this code on internet. Link to comment Share on other sites More sharing options...
shokinro Posted December 28, 2011 Share Posted December 28, 2011 yes, you are right, I am glad you found it and solved the problem. Link to comment Share on other sites More sharing options...
yusufzulkarnain Posted July 3, 2012 Share Posted July 3, 2012 Go to the Preferences > Products tab and change the "Order way" to "Descending". If that doesn't work, or you want to override the setting just for the featured products, change line 72 of modules/homefeatured/homefeatured.tpl 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'); Hi! Rocky.I get an error message on the top apart of the modules page. Here is the error : Parse error : syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in /home/bajudito/public_html/classes/Module.php(492) : eval()'d code(16) : eval()'d code(1) : eval()'d code(2) : eval()'d code on line 159 How can I repair the something wrong? Link to comment Share on other sites More sharing options...
prestahero.com Posted March 23, 2017 Share Posted March 23, 2017 Hi, May i know how can i change the product list display at Home Page is front latest added to oldest product? Now all product show in my home page is oldest product... cry...~ you can hardcode the featured products module or install additional modules. Home product categories PRO is one of those, you have many options to customize product list on your home page (display products by categories or display all products) https://addons.prestashop.com/en/products-homepage/26563-home-product-categories-pro.html This module also provides a "Sort by" option on the frontend, customer can sort the product lists by default product category position, product name (A-Z), new products or random order... Cheer! 1 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