Global:eCommerce.ReverseChargeForVatToken

globalvalue  

Summary

Returns a token that is calculated dynamically and used with the orderLine property Ecom:Order:OrderLine.ReverseChargeForVat to indicate whether the price is in a reverse charge for VAT state.

Settings

The value is generated automatically.

Remarks

You can enable the reverse charge state by a query like this:

domain.com/page/product.aspx?ReverseChargeForVat=True&ReverseChargeForVatToken=<!--@Global:eCommerce.ReverseChargeForVatToken-->

Examples

Outputting the template tag

@GetGlobalValue("Global:eCommerce.ReverseChargeForVatToken")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if globalvalue has a value

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