Osclass Support Forums

Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: Olegs on February 12, 2019, 02:47:39 PM

Title: In alphabet order
Post by: Olegs on February 12, 2019, 02:47:39 PM
Hello. How i can make subcategories in alphabet order. We have 3 languages English, Russian and Latvian. For all three languages we need alphabetical order. Thnks
Title: Re: In alphabet order
Post by: MB Themes on February 12, 2019, 04:41:46 PM
@Olegs
You must reorganize them in backoffice.
Title: Re: In alphabet order
Post by: Olegs on February 12, 2019, 05:11:29 PM
You mean Backoffice Manager Plugin ?
Title: Re: In alphabet order
Post by: MB Themes on February 12, 2019, 08:32:35 PM
@Olegs
Backoffice of oclass (oc-admin)
Oc-admin > settings > categories
Title: Re: In alphabet order
Post by: Olegs on February 12, 2019, 10:26:01 PM
@Olegs
Backoffice of oclass (oc-admin)
Oc-admin > settings > categories

In the admin panel you can put the alphabetical order only for one language. For example in English. But in Russian and Latvian we can not do this. Our site uses 3 languages, respectively, all categories have different names.
Title: Re: In alphabet order
Post by: MB Themes on February 13, 2019, 06:47:13 AM
@Olegs
Correct, but as categories are retrieve from database by osclass, you would have to go to core and look for modifications there.
Title: Re: In alphabet order
Post by: Ivanko on February 15, 2019, 09:28:30 AM
Hello. How i can make subcategories in alphabet order. We have 3 languages English, Russian and Latvian. For all three languages we need alphabetical order. Thnks
а почему города не перевел??
не порядок
Title: Re: In alphabet order
Post by: Dannad on March 22, 2019, 05:52:55 PM
Locate this in oc-includes/osclass/model/Category.php (2 lines):


$this->dao->orderBy('i_position', 'ASC');


and replace them with:


$this->dao->orderBy('s_name', 'ASC');