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