Skip to content

getCountry(int country_id)

The getCountry method is used to get a Country object that represents country in the storefront.

Input parameters

country_id

int Numeric identifier of the country.

Returned value

The Country object.

Example

source
{% set country = ObjectApi.getCountry(country_id) %}
{{ country.name }}
output
Poland