Countries
Summary
The Countries
loop lets you display information about countries.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Ecom:Country.AddressDisplayFormat
Returns string contains address display format.
@GetString("Ecom:Country.AddressDisplayFormat")
Ecom:Country.AddressEditFormat
Returns string contains address edit format.
@GetString("Ecom:Country.AddressEditFormat")
Ecom:Country.Code2
Returns the country code 2 for the country.
@GetString("Ecom:Country.Code2")
Ecom:Country.CultureInfo
Returns the locale ID for the country.
@GetString("Ecom:Country.CultureInfo")
Ecom:Country.CurrencyCode
Returns the currency code of the country.
@GetString("Ecom:Country.CurrencyCode")
Ecom:Country.IsCustomerCountry
Returns True if the country is customer's one.
@GetString("Ecom:Country.IsCustomerCountry")
Ecom:Country.IsCustomerCountryOrDefault
Returns True if the customer's country is the same as the site's default one
@GetString("Ecom:Country.IsCustomerCountryOrDefault")
Ecom:Country.IsDeliveryCountry
Returns True if the country is the same as the delivery's one
@GetString("Ecom:Country.IsDeliveryCountry")
Ecom:Country.IsDeliveryCountryOrDefault
Returns True if the delivery country is the same as the site's default one
@GetString("Ecom:Country.IsDeliveryCountryOrDefault")
Ecom:Country.LanguageID
Returns the language ID applied for the country.
@GetString("Ecom:Country.LanguageID")
Ecom:Country.Number
Returns the payment code for the country.
@GetInteger("Ecom:Country.Number")
Ecom:Country.Vat
Returns the sales tax percentage for the country.
@GetDouble("Ecom:Country.Vat")
Available loops
CountryTexts
The CountryTexts
loop lets you display basic information about counties.
@foreach (LoopItem item in GetLoop("CountryTexts")){ <p>@item.GetValue("TagName")</p> }
Regions
The Regions
loop lets you display information about all regions available in for the country definition.
@foreach (LoopItem item in GetLoop("Regions")){ <p>@item.GetValue("TagName")</p> }