Код:
<div class="controls">
<?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
</div>
</div>
<div class="form-group">
<label class="control-label" for="region">
<?php _e('Region', OSCLASSWIZARDS_THEME_FOLDER); ?>
</label>
<div class="controls">
<?php
if(osclasswizards_locations_input_as() =='select'){
ItemForm::region_select(osc_get_regions(),osc_user());
}else{
ItemForm::region_text(osc_user());
}
?>
</div>
Имеется данный кусок кода!
Необходимо сделать страну по умолчанию (то есть без права выбора для пользователя), для этого я подправил код и сделал так:
Код:
<div class="controls">
<?php ItemForm::country_text($item); ?>
</div>
А вот регион по умолчанию не получаеться сделать, может кто подскажет?
P.S. Страна 1 шт., Регион 1 шт.)))