Hi,
How do you get the country name from a store's information? I've got the data from $settings.Company
but but $settings.Company.company_state
and $settings.Company.company_country
return codes rather than names. Is there an array I can access via smarty to get the name of the country/state from the code?
hi,
to get country name please use this:
{$settings.Company.company_country|fn_get_country_name}
to get state name please use this:
{$settings.Company.company_state|fn_get_state_name:$settings.Company.company_country}
best regards,
WSA team
Please use:
{$settings.Company.company_state|fn_get_state_name:$settings.Company.company_country}
and
{$settings.Company.company_country|fn_get_country_name}
please let us know whether provided solution helps you or not