Advertisement:

Author Topic: How to sort countries by Name or country code instead of alphabetic order  (Read 41 times)

Magyar

  • Newbie
  • *
  • Posts: 3
Dear Users and Osclass Team,

As described  in the subject, I have countries like Argentina, Brazil etc. on my osclass classfied.
But the most of my users are from Brazil, so I would like to have Brazil on the first row in the dropdown (select#countryId).

You can find this selector e.g. on the item_post, item_edit pages, but also on the search page. 

I found sth similar for regions:
https://forums.osclass.org/general-help/put-some-regions-on-top-of-others-in-item-publishedit-pages/msg50671/#msg50671

But I do not get that to work for countries field.  :-\

Thanks in advance &
Brgds, Magyar
« Last Edit: September 15, 2019, 06:13:59 pm by Magyar »

vivekshan

  • Full Member
  • ***
  • Posts: 113
Re: How to sort countries by Name or country code instead of alphabetic order
« Reply #1 on: September 16, 2019, 10:07:41 pm »
Thank god that you have countries list like brazil , argentina and ets etc .... on item-post page

it can be changes through core files

dont try to mess directly with core files

if your most users are from brazil then no problem

they will find brazil country on item-post page while posting ads

brazil users will post in brazil country section not argentina

so dont worry for that