Ecom:Order:OrderLine.IsTax
Version: - stringSummary
Returns "True" if the orderline is a tax. If not - an empty string is returned (e.g. if it's a product).
Settings
The value is generated automatically.
Remarks
You can use If Defined to find out if the orderline represents a product or not. This is used to hide e.g. increment/decrement links from the tax lines.
Examples
Outputting the template tag
@GetString("Ecom:Order:OrderLine.IsTax")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order:OrderLine.IsTax"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Order:OrderLine.IsTax");
}
Outputting the template tag
<!--@Ecom:Order:OrderLine.IsTax-->
Check if string has a value
<!--@If Defined(@Ecom:Order:OrderLine.IsTax)-->
Let's output this tag here: <strong><!--@Ecom:Order:OrderLine.IsTax--></strong>
<!--@EndIf(@Ecom:Order:OrderLine.IsTax)-->