// Context part 29
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7935 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -147,8 +147,6 @@ class VatNumber extends Module
|
||||
|
||||
public function getContent()
|
||||
{
|
||||
global $cookie;
|
||||
|
||||
$echo = '';
|
||||
|
||||
if (Tools::isSubmit('submitVatNumber'))
|
||||
@@ -166,7 +164,7 @@ class VatNumber extends Module
|
||||
<div class="margin-form">
|
||||
<select name="vatnumber_country">
|
||||
<option value="0">'.$this->l('-- Choose a country --').'</option>';
|
||||
foreach (Country::getCountries((int)($cookie->id_lang)) as $country)
|
||||
foreach (Country::getCountries($this->context->language->id) as $country)
|
||||
$echo .= ' <option value="'.$country['id_country'].'" '.(Tools::getValue('VATNUMBER_COUNTRY', Configuration::get('VATNUMBER_COUNTRY')) == $country['id_country'] ? 'selected="selected"' : '').'>'.$country['name'].'</option>';
|
||||
$echo .= ' </select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user