(1) In root/controllers/front/addresscontroller.php file I found the assignCountries section (pasted in below).
(2) The file addresscontroller.php does NOT exist in the path root/override/controllers/front/addresscontroller.php
Here is the code:
protected function assignCountries()
{
$this->id_country = (int)Tools::getCountry($this->_address);
// Generate countries list
if (Configuration::get('PS_RESTRICT_DELIVERED_COUNTRIES')) {
$countries = Carrier::getDeliveredCountries($this->context->language->id, true, true);
} else {
$countries = Country::getCountries($this->context->language->id, true);
}
// @todo use helper
$list = '';
foreach ($countries as $country) {
$selected = ((int)$country['id_country'] === $this->id_country) ? ' selected="selected"' : '';
$list .= '<option value="'.(int)$country['id_country'].'"'.$selected.'>'.htmlentities($country['name'], ENT_COMPAT, 'UTF-8').'</option>';
}
// Assign vars
$this->context->smarty->assign(array(
'countries_list' => $list,
'countries' => $countries,
'sl_country' => (int)$this->id_country,
));
}
/**
* Assign template vars related to address format
*/
(2)