Jump to content

Change the order for the state list on checkout page


toimata

Recommended Posts

Hi there, 

I'm not sure it's really a bug but.

On the address form on checkout page, the customer can select his state in a "list" field. This list is ordered by default by the creation date of each state (created by admin from dashboard). I couldn't find a way to reorder this list for customers. That's really not good. I need this list to make the states appear in alphabetical order.

How can i do this ?

Prestashop 1.7.7.1
URL : https://nicolasp24.sg-host.com/
Theme : Warehouse
Hébergement : Siteground
PHP 7.4

Cheers,
Nico

 

Link to comment
Share on other sites

2 hours ago, toimata said:

Hi there, 

I'm not sure it's really a bug but.

On the address form on checkout page, the customer can select his state in a "list" field. This list is ordered by default by the creation date of each state (created by admin from dashboard). I couldn't find a way to reorder this list for customers. That's really not good. I need this list to make the states appear in alphabetical order.

How can i do this ?

Prestashop 1.7.7.1
URL : https://nicolasp24.sg-host.com/
Theme : Warehouse
Hébergement : Siteground
PHP 7.4

Cheers,
Nico

 

About your question, you will need to change the sql and and ORDER BY, this is not a real bug and i don't think they will change it in the core files.

Second: PHP 7.4, that needs to be changed.

php-compatibility-chart.thumb.jpg.d364be36576aa7e7195173b7077f03ec.jpg

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...