Ecom:Product.Currency

Version: - price  

Summary

Returns the name of the currency, e.g. "Euro".

Settings

The value is generated automatically.

Remarks

Includes the option to add price extensions in order to format the ccurrency. 

See Price tag extensions for further details about formatting this currency.

(Prefix : Ecom:Product.Currency).

Examples

Outputting the template tag

@GetPrice("Ecom:Product.Currency")

Check if tag has a value

@if(!double.IsNullOrWhiteSpace(GetPrice("Ecom:Product.Currency"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ double storedTag = GetPrice("Ecom:Product.Currency"); }

Outputting the template tag

<!--@Ecom:Product.Currency-->

Check if price has a value

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