yard Posted March 11, 2018 Share Posted March 11, 2018 Hello, I have PrestaShop v.1.6.1.16 installed on https://autoair.sk/ I have trouble sort featured products alphabetically on frontpage. I was try this https://www.prestashop.com/forums/topic/262441-solved-featured-products-change-the-order/ but no result I was manage positions in backed: then flushing cache But on frontpage no result - for example item Antitabak still sit on end of page: then I was try modify homefeatured.php in modules: public function _cacheProducts() { if (!isset(HomeFeatured::$cache_products)) { $category = new Category((int)Configuration::get('HOME_FEATURED_CAT'), (int)Context::getContext()->language->id); $nb = (int)Configuration::get('HOME_FEATURED_NBR'); if (Configuration::get('HOME_FEATURED_RANDOMIZE')) HomeFeatured::$cache_products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8), null, null, false, true, true, ($nb ? $nb : 8)); else HomeFeatured::$cache_products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8), 'position','DESC'); } and flushing cache. Then products order changed, but no alphabetically: Link to comment Share on other sites More sharing options...
NemoPS Posted March 12, 2018 Share Posted March 12, 2018 you have to change "position" to "name" for that, next to the DESC you changed already 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