Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Changing the countries dropdown order


Recommended Posts

As almost all our orders are from the US, it would be convenient for a registering customer to be able to select US as the first entry in the countries dropdown rather than scrolling down through several hundred other countries.


The create_account.php page reads from the countries table, where countries are sorted by the countries_id field. Afghanistan has countries_id 1 and the US has countries_id 223.


The solution came to mind of re-assigning the US the 1 spot and moving Afghanistan from 1 to 2, Albania from 2 to 3, and so on, until I get to Antarctica at number 8, which could just be eliminated, as we are not expecting orders to be pouring in from this part of the world. I am thinking I could eliminate 223 and hope the code reading this table does not mind or that past orders are not adversely affected.


Thanks in advance for any feedback.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...