Ecom:StockUnit.TotalVolume
Version: - doubleSummary
Returns the total volume of the specific unit for all stock locations.
Settings
The value is generated automatically.
Remarks
The total number doesn't count the stock for delocalized stock locations.
Examples
Outputting the template tag
@GetDouble("Ecom:StockUnit.TotalVolume")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:StockUnit.TotalVolume"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:StockUnit.TotalVolume");
}
Outputting the template tag
<!--@Ecom:StockUnit.TotalVolume-->
Check if double has a value
<!--@If Defined(@Ecom:StockUnit.TotalVolume)-->
Let's output this tag here: <strong><!--@Ecom:StockUnit.TotalVolume--></strong>
<!--@EndIf(@Ecom:StockUnit.TotalVolume)-->