Global:eCommerce.PricesWithVat

Version: - globalvalue  

Summary

Returns True if VAT is enabled in website settings.

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)

Remarks

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

Examples

Outputting the template tag

@GetGlobalValue("Global:eCommerce.PricesWithVat")

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

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

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)-->