Ecom:VariantCombination.Product.Stock
Version: - doubleSummary
Returns the stock count for the product variant.
Settings
The value is based on the Stock level
input field for the product variant.
Examples
Outputting the template tag
@GetDouble("Ecom:VariantCombination.Product.Stock")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:VariantCombination.Product.Stock"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:VariantCombination.Product.Stock");
}
Outputting the template tag
<!--@Ecom:VariantCombination.Product.Stock-->
Check if double has a value
<!--@If Defined(@Ecom:VariantCombination.Product.Stock)-->
Let's output this tag here: <strong><!--@Ecom:VariantCombination.Product.Stock--></strong>
<!--@EndIf(@Ecom:VariantCombination.Product.Stock)-->