oc-content/themes/veronika/functions.php
// GET CITY, REGION, COUNTRY FOR AJAX LOADER
GET CITY, REGION, COUNTRY FOR AJAX LOADER
GET CITY REGION COUNTRY FOR AJAX LOADER
function veronika_ajax_city() {
  $user = osc_user();
  $item = osc_item();
  if(Params::getParam('sCity') <> '') {
    return Params::getParam('sCity');
  } else if (isset($item['fk_i_city_id']) && $item['fk_i_city_id'] <> '') {
    return $item['fk_i_city_id'];
  } else if (isset($user['fk_i_city_id']) && $user['fk_i_city_id'] <> '') {
    return $user['fk_i_city_id'];
  }
}
function veronika_ajax_city ( ) { $ user = osc_user ( ) ; $ item = osc_item ( ) ; if ( Params :: getParam ( 'sCity' ) <> '' ) { return Params :: getParam ( 'sCity' ) ; } else if ( isset ( $ item [ 'fk_i_city_id' ] ) && $ item [ 'fk_i_city_id' ] <> '' ) { return $ item [ 'fk_i_city_id' ] ; } else if ( isset ( $ user [ 'fk_i_city_id' ] ) && $ user [ 'fk_i_city_id' ] <> '' ) { return $ user [ 'fk_i_city_id' ] ; } }
GET CITY, REGION, COUNTRY FOR AJAX LOADER
GET CITY REGION COUNTRY FOR AJAX LOADER