Hi
When a customer creates an account I need a pull down menu for cities.
I can show the customer the pull down menu of the states and call it "city" but
I need Zen to get this chosen state as a city value.
I tried to play with the file tpl_modules_create_account.php without much success.
Here is the original code of the city:
And here is the original code of the states:Code:<label class="inputLabel" for="city"><?php echo ENTRY_CITY; ?></label> <?php echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' id="city" placeholder="' . ENTRY_CITY_TEXT . '"'. ((int)ENTRY_CITY_MIN_LENGTH > 0 ? '' : '')); ?> <br class="clearBoth" />
Code:<?php if (ACCOUNT_STATE == 'true') { if ($flag_show_pulldown_states == true) { ?> <label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label> <?php echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"'); if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert">' . ENTRY_STATE_TEXT . '</span>'; } ?> <?php if ($flag_show_pulldown_states == true) { ?> <br class="clearBoth" id="stBreak" /> <?php } ?> <label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label> <?php echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" placeholder="' . ENTRY_STATE_TEXT . '"'); if ($flag_show_pulldown_states == false) { echo zen_draw_hidden_field('zone_id', $zone_name, ' '); } ?> <br class="clearBoth" />


Reply With Quote

