I need to change the display of the order/shipping address of drupal commerce to render the city in a select list instead of writing the city, I need to upload in the database the list of the cites relevant to the governments of Egypt.

Are there a module may help to achieve this? as I don't have a PHP developing experience.


There is not currently a way to do this with the Address Field module. One of the Address Field maintainers has addressed that this in the works for 2.x release. In the meantime, the only way to do this is with a custom module. Someone has already written up an example of how to do this, specifically using Egypt as an example.

  • Thanks a lot for your reply, i tested the code but it doesn't work with me, anyway i commented on it and i wish the author contacts me for clarification.
    – Ahmed
    May 26 '15 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.