Skip to content

County functions

Moisés Barrachina Planelles edited this page Oct 4, 2023 · 2 revisions

Backend Frontend Template provides several functions about countries:

$this->countries_codes_names_get()

Returns a country list
  $countries_codes_names = [
		'AF'=> $this->__('Afghanistan'),
		'AX'=> $this->__('Aland Islands'),
		'AL'=> $this->__('Albania'),
		'DZ'=> $this->__('Algeria'),
		'AS'=> $this->__('American Samoa'),
		'AD'=> $this->__('Andorra'),	
		[...]

$this->country_code_name_get($country_code)

Returns the country name through the country code
Clone this wiki locally