В настройках полей покупателей - Город - Автозаполнение.
В simplegeo.php
public function getGeoList($city) {
$city = trim($city);
$key = md5($city);
$geo_data = $this->cache->get('geo.' . $key);
if (!$geo_data) {
$sql = "SELECT city_id, name FROM " . DB_PREFIX . "city ";
$geo_data = array();
$query = $this->db->query($sql);
$sort_order = array();
foreach ($query->rows as $result) {
$geo_data[$result['id']] = array(
'id' => $result['city_id'],
'city' => $result['name'],
);
$sort_order[$result['id']] = utf8_strlen($result['name']);
}
if (!$query->num_rows) {
$geo_data[0] = array(
'id' => 0,
'city' => '',
'zone_id' => 0,
'country_id' => 0,
'postcode' => '',
'full' => 'Совпадений не найдено. Проверьте написание.'
);
$sort_order[0] = 0;
}
array_multisort($sort_order, SORT_ASC, $geo_data);
$this->cache->set('geo.' . $key, $geo_data);
}
return array_slice($geo_data, 0, 15);
}
В корзине стандартные подсказки через основную таблицу, подскажите правильный код. Спасибо.