Global:eCommerce.Currency

Version: - globalvalue  

Summary

Returns the currency that is used in the context.

Settings

The value is generated automatically.

Remarks

The value is based on the Currency setting field for the website.

(Modules > Website > Website tab > Ecommerce Settings > Currency).

Examples

Outputting the template tag

@GetGlobalValue("Global:eCommerce.Currency")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:eCommerce.Currency"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:eCommerce.Currency"); }

Outputting the template tag

<!--@Global:eCommerce.Currency-->

Check if globalvalue has a value

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