Ecom:Order:OrderLine.ProductIsActive
Version: - booleanSummary
Returns True if the product is active.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetBoolean("Ecom:Order:OrderLine.ProductIsActive")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:Order:OrderLine.ProductIsActive"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("Ecom:Order:OrderLine.ProductIsActive");
}
Outputting the template tag
<!--@Ecom:Order:OrderLine.ProductIsActive-->
Check if boolean has a value
<!--@If Defined(@Ecom:Order:OrderLine.ProductIsActive)-->
Let's output this tag here: <strong><!--@Ecom:Order:OrderLine.ProductIsActive--></strong>
<!--@EndIf(@Ecom:Order:OrderLine.ProductIsActive)-->