cherubrock74 Posted November 3, 2009 Posted November 3, 2009 After installing the "force country" contribution, the "state" selection drop down menu disappeared, replaced by an input text in which the user has to type the state name... is there a way to fix this and have the drop down manu back? I am forcing the store to use United States as country... the funny thing that is driving me crazy is that if there is any error compiling the form the "create_account" page reports the error (ex. email not valid) and the drop down menu to select the state appears again??? any clue?
cherubrock74 Posted November 6, 2009 Author Posted November 6, 2009 After installing the "force country" contribution, the "state" selection drop down menu disappeared, replaced by an input text in which the user has to type the state name... is there a way to fix this and have the drop down manu back? I am forcing the store to use United States as country... the funny thing that is driving me crazy is that if there is any error compiling the form the "create_account" page reports the error (ex. email not valid) and the drop down menu to select the state appears again??? any clue? Still trying to solve my issue... I was able to find the code that displays the state input field and the drop down...can someone please help me solve this? here is the code that I believe has to be changed in order to display the drop down state menu at first... <?php if ($process == true) { if ($entry_state_has_zones == true) { $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' 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); } else { echo tep_draw_input_field('state'); } } else { echo tep_draw_input_field('state'); } if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT; ?>
cherubrock74 Posted November 6, 2009 Author Posted November 6, 2009 I figured out the code thanks to this post here Just thought of sharing it in case someone has the same type of issue with the registration form. Feel free to contact me also. :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.