Kulebyaka Posted August 18, 2014 Share Posted August 18, 2014 В данный момент наблюдаем сортировку товаров по последнему добавленному. Как заставить сортировать товар по дате изменения? Спасибо. Link to comment Share on other sites More sharing options...
Kulebyaka Posted August 25, 2014 Author Share Posted August 25, 2014 Вопрос актуален. Link to comment Share on other sites More sharing options...
savvato Posted August 25, 2014 Share Posted August 25, 2014 (edited) Если вы используете модуль homefeatured то в файле homefeatured.php то найдите строку $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8), "position"); и замените на $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8), "date_upd"); Edited August 25, 2014 by savvato (see edit history) 1 Link to comment Share on other sites More sharing options...
Kulebyaka Posted August 25, 2014 Author Share Posted August 25, 2014 (edited) Нет. Фокус не удался. Сортировка на главной не изменилась Но сработала в самом каталоге! Осталось найти шаблон, отвечающий за вывод товара на главную, а суть понятна. Edited August 25, 2014 by Kulebyaka (see edit history) Link to comment Share on other sites More sharing options...
Kulebyaka Posted September 23, 2014 Author Share Posted September 23, 2014 (edited) Нет. Не поддаётся. На главной странице необходима сортировка по дате изменения. Буду благодарен за подсказку. Edited September 23, 2014 by Kulebyaka (see edit history) 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