46racer46 Posted February 8, 2020 Share Posted February 8, 2020 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 More sharing options...
way1 Posted December 10, 2020 Share Posted December 10, 2020 (edited) I confirm that this bug persists on Prestashop 1.7.7.0 when you adding an address for a customer. I have found the solution here: How sort states alphabetically Edited December 10, 2020 by way1 splved (see edit history) Link to comment Share on other sites More sharing options...
sfweb Posted December 21, 2022 Share Posted December 21, 2022 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 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