Ecom:CountryText.Code2

Version: - string  

Summary

Returns the country code 2 for the country.

Settings

The value is based on the Country code (2) input field under the Country settings.

(Management Center > eCommerce settings > Internationalization > Country > Country > General tab)

Examples

Outputting the template tag

@GetString("Ecom:CountryText.Code2")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:CountryText.Code2"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:CountryText.Code2"); }

Outputting the template tag

<!--@Ecom:CountryText.Code2-->

Check if string has a value

<!--@If Defined(@Ecom:CountryText.Code2)--> Let's output this tag here: <strong><!--@Ecom:CountryText.Code2--></strong> <!--@EndIf(@Ecom:CountryText.Code2)-->