Jump to content

Alphabetical order of provinces


46racer46

Recommended Posts

Hello everybody,

 

P.S. 1.7.6.2

If I add provinces in B.O., when I open F.O. drop down menu (in registration form, or in address settings), I found the new provinces last because de order is by ID and not alphabetical.

 

How should I do to have the list of provinces in alphabetical order in F.O., please?

 

Thank you so much, Alex.

Link to comment
Share on other sites

  • 10 months later...
  • 2 years later...

Hi, you can reorder array in tpl file

edit /themes/THEME-XXX/templates/customer/_partials/address-form.tpl

add 

{if $field["name"] == "id_state"} {$_resultorder = $field["availableValues"]|@asort} {/if}

after

{foreach from=$formFields item="field"}

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
×
×
  • Create New...