Ecom:Order.Currency
Version: - stringSummary
Returns the currency that the orders is created with.
Settings
The values regarding the currency are dependent of the currency settings.
(Management center - Ecommerce > Internationalization > Currency)
Remarks
Includes the option to add currency extensions in order to format the currency.
See Price tag extensions for further details about formatting this currency.
(Prefix : Ecom:Order.Currency
).
Examples
Outputting the template tag
@GetString("Ecom:Order.Currency")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order.Currency"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Order.Currency");
}
Outputting the template tag
<!--@Ecom:Order.Currency-->
Check if string has a value
<!--@If Defined(@Ecom:Order.Currency)-->
Let's output this tag here: <strong><!--@Ecom:Order.Currency--></strong>
<!--@EndIf(@Ecom:Order.Currency)-->