Ecom:Order:OrderLine.ReverseChargeForVat
Version: - booleanSummary
This tag is an orderLine property 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
@GetBoolean("Ecom:Order:OrderLine.ReverseChargeForVat")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:Order:OrderLine.ReverseChargeForVat"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("Ecom:Order:OrderLine.ReverseChargeForVat");
}
Outputting the template tag
<!--@Ecom:Order:OrderLine.ReverseChargeForVat-->
Check if boolean has a value
<!--@If Defined(@Ecom:Order:OrderLine.ReverseChargeForVat)-->
Let's output this tag here: <strong><!--@Ecom:Order:OrderLine.ReverseChargeForVat--></strong>
<!--@EndIf(@Ecom:Order:OrderLine.ReverseChargeForVat)-->