In item-post.php look for this code:
<div class="box location">
<h2><?php _e('Listing Location', 'bender'); ?></h2>
<?php if(count(osc_get_countries()) > 1) { ?>
<div class="control-group">
<label class="control-label" for="country"><?php _e('Country', 'bender'); ?></label>
<div class="controls">
<?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="regionId"><?php _e('Region', 'bender'); ?></label>
<div class="controls">
<?php
if (bender_default_location_show_as() == 'dropdown') {
ItemForm::region_select(osc_get_regions(osc_user_field('fk_c_country_code')), osc_user());
} else {
ItemForm::region_text(osc_user());
}
?>
</div>
</div>
<?php
} else {
$aCountries = osc_get_countries();
$aRegions = osc_get_regions($aCountries[0]['pk_c_code']);
?>
<input type="hidden" id="countryId" name="countryId" value="<?php echo osc_esc_html($aCountries[0]['pk_c_code']); ?>"/>
<div class="control-group">
<label class="control-label" for="region"><?php _e('Region', 'bender'); ?></label>
<div class="controls">
<?php
if (bender_default_location_show_as() == 'dropdown') {
ItemForm::region_select($aRegions, osc_user());
} else {
ItemForm::region_text(osc_user());
}
?>
</div>
</div>
<?php } ?>
<div class="control-group">
<label class="control-label" for="city"><?php _e('City', 'bender'); ?></label>
<div class="controls">
<?php
if (bender_default_location_show_as() == 'dropdown') {
if(Params::getParam('action') != 'item_edit') {
ItemForm::city_select(null, osc_item());
} else { // add new item
ItemForm::city_select(osc_get_cities(osc_user_region_id()), osc_user());
}
} else {
ItemForm::city_text(osc_user());
}
?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="cityArea"><?php _e('City Area', 'bender'); ?></label>
<div class="controls">
<?php ItemForm::city_area_text(osc_user()); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="address"><?php _e('Address', 'bender'); ?></label>
<div class="controls">
<?php ItemForm::address_text(osc_user()); ?>
</div>
</div>
</div>
Then replace the block:
<h2><?php _e('Listing Location', 'bender'); ?></h2>
<?php if(count(osc_get_countries()) > 1) { ?>
<div class="control-group">
<label class="control-label" for="country"><?php _e('Country', 'bender'); ?></label>
<div class="controls">
<?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="regionId"><?php _e('Region', 'bender'); ?></label>
<div class="controls">
<?php
if (bender_default_location_show_as() == 'dropdown') {
ItemForm::region_select(osc_get_regions(osc_user_field('fk_c_country_code')), osc_user());
} else {
ItemForm::region_text(osc_user());
}
?>
</div>
</div>
<?php
} else {
$aCountries = osc_get_countries();
$aRegions = osc_get_regions($aCountries[0]['pk_c_code']);
?>
<input type="hidden" id="countryId" name="countryId" value="<?php echo osc_esc_html($aCountries[0]['pk_c_code']); ?>"/>
<div class="control-group">
<label class="control-label" for="region"><?php _e('Region', 'bender'); ?></label>
<div class="controls">
<?php
if (bender_default_location_show_as() == 'dropdown') {
ItemForm::region_select($aRegions, osc_user());
} else {
ItemForm::region_text(osc_user());
}
?>
</div>
</div>
<?php } ?>
with the following:
<input type="hidden" name="country" id="country" value="your country"/>
<input type="hidden" name="region" id="region" value="your region"/>
and again look for:
<?php
if (bender_default_location_show_as() == 'dropdown') {
if(Params::getParam('action') != 'item_edit') {
ItemForm::city_select(null, osc_item());
} else { // add new item
ItemForm::city_select(osc_get_cities(osc_user_region_id()), osc_user());
}
} else {
ItemForm::city_text(osc_user());
}
?>
and repalce it with:
<?php ItemForm::city_select( osc_get_cities(), osc_user() ); ?>
so at the end the block code for location should look like the following:
<div class="box location">
<input type="hidden" name="country" id="country" value="your country"/>
<input type="hidden" name="region" id="region" value="your region"/>
<div class="control-group">
<label class="control-label" for="city"><?php _e('City', 'bender'); ?></label>
<div class="controls">
<?php ItemForm::city_select( osc_get_cities(), osc_user() ); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="cityArea"><?php _e('City Area', 'bender'); ?></label>
<div class="controls">
<?php ItemForm::city_area_text(osc_user()); ?>
</div>
</div>
<div class="control-group">
<label class="control-label" for="address"><?php _e('Address', 'bender'); ?></label>
<div class="controls">
<?php ItemForm::address_text(osc_user()); ?>
</div>
</div>
</div>
If you do everything correctly it should work.