Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Recommended Posts

Добрый день. У меня стоит ocStore 1.5.5.1.2. Во вкладке "Связи" при редактировании товара список категорий рандомный (строка "Показывать в категориях"), а хотелось бы в алфавитном порядке. 
Какие есть безопасные решения без вмешательств в БД?

Спасибо
 

Link to comment
Share on other sites


в файле admin\model\catalog\category.php

в методе getCategories

 

замените строку

$sql .= " GROUP BY cp.category_id ORDER BY c.sort_order, name";

 

на

$sql .= " GROUP BY cp.category_id ORDER BY name, c.sort_order";

 

будет сортировка по названию категорий

Link to comment
Share on other sites

В admin/model/category.php есть метод getCategories()

$sql .= " GROUP BY cp.category_id ORDER BY c.sort_order, name";

там есть такой вот хвостик.

Вот ORDER BY замените на тот порядок, который вам нужен

Link to comment
Share on other sites


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.