Advertisement:

Author Topic: Search Sidebar: 'Apply' button doesn't take in 'City' values  (Read 848 times)

nmag

  • Newbie
  • *
  • Posts: 14
Search Sidebar: 'Apply' button doesn't take in 'City' values
« on: April 19, 2014, 11:25:40 pm »
all,
Theme Bender
I modified the code to turn the city auto-complete in the Search Sidebar to Drop-Down.
However, after hitting the 'Apply' button the results do not take into consideration the value in the 'City' dropdown. Any idea why?

Replaced this code in search-sidebar.php:
Code: [Select]
<div class="row">
                <input class="select" type="text" id="sCity" name="sCity" value="<?php echo osc_esc_html(osc_search_city()); ?>" />
            </div>

with this:
Code: [Select]
<div class="control-group">
                                <label class="control-label" for="city"><?php _e('City''bender'); ?></label>
                                <div class="controls">
                                    <?php ItemForm::city_select (osc_search_cities(), osc_user()); ?>
                                </div>