Ecom:StockUnit.TotalQuantity

Version: - double  

Summary

Returns the total quantity/amount 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.TotalQuantity")

Check if tag has a value

@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:StockUnit.TotalQuantity"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ double storedTag = GetDouble("Ecom:StockUnit.TotalQuantity"); }

Outputting the template tag

<!--@Ecom:StockUnit.TotalQuantity-->

Check if double has a value

<!--@If Defined(@Ecom:StockUnit.TotalQuantity)--> Let's output this tag here: <strong><!--@Ecom:StockUnit.TotalQuantity--></strong> <!--@EndIf(@Ecom:StockUnit.TotalQuantity)-->