Version: - globalvalue  


Returns True if VAT is enabled in website settings.


The value is based on the Prices with VAT field in the Ecommerce settings in website settings.

(Modules > Websites > Website > Ecommerce > Prices with VAT)


The tag is only rendered if Yes or None (default) is selected in the Prices with VAT field.


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag


Check if globalvalue has a value

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