This is my first time adding something but I know a lot of people from the states needed a dropdown list for the Create Account page ( i did too), so I added one in, its very simple so listen up
step 1: go to the file catalog/includes/modules/account_details.php
step 2: find the portion of code that is dealing with states you should see something like this
if (ACCOUNT_STATE == 'true') {
Thats the beginning of the portion of code. dont touch that though
step 3: go to the last else of that php block and remove its contents
I think it starts with echo tep_draw_input_field
step 4: replace with:
$zones_array = array();
$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . $account['entry_country_id'] . "' order by zone_name");
while ($zones_values = tep_db_fetch_array($zones_query)) {
$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
}
echo tep_draw_pull_down_menu('state', $zones_array) . ' ' . ENTRY_STATE_TEXT;
step 5: save your code and it should bring up a drop down list (dont forget to check that all your code end with correct semi-colons and brackets are closed correctly)
HAVE A NICE LIFE :lol: