Hello
I have a problem with search filter on mobile theme!!!
I want the search filter by category, country and region so I did the following:
in plugins/osc_mobile/themes/mobile/inc.search.php
i add this code:
<?php MblItemForm::location_javascript(); ?>
and there where we call the list of Categories i add:
<?php if ( osc_count_categories() ) { ?>
<?php osc_categories_select() ; ?>
<fieldset data-role="fieldcontain">
<h3><?php _e('Item Location', 'osc_mobile'); ?></h3>
<fieldset data-role="fieldcontain">
<label for="countryId"><?php _e('Country', 'osc_mobile'); ?></label>
<?php MblItemForm::country_select(osc_get_countries(), osc_user()) ; ?>
</fieldset>
<fieldset id="field_select_region" data-role="fieldcontain" style="display:none;">
<label for="regionId"><?php _e('Region', 'osc_mobile'); ?></label>
<?php MblItemForm::region_select(osc_get_regions(osc_user_country()), osc_user()) ; ?>
</fieldset>
</fieldset>
<?php } ?>
Now it show me the seach input field, select category, select country but if i select a country it show me all regions of all countries!!
what am I doing wrong???
thank you for your help!