Ecom:Country.CurrencyCode
Version: - stringSummary
Returns the currency code of the country.
Settings
The value is based on the Currency code input field under the Country settings.
(eCommerce > Configuration > Country > Country > General tab)
Examples
Outputting the template tag
@GetString("Ecom:Country.CurrencyCode")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Country.CurrencyCode"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Country.CurrencyCode");
}
Outputting the template tag
<!--@Ecom:Country.CurrencyCode-->
Check if string has a value
<!--@If Defined(@Ecom:Country.CurrencyCode)-->
Let's output this tag here: <strong><!--@Ecom:Country.CurrencyCode--></strong>
<!--@EndIf(@Ecom:Country.CurrencyCode)-->