StockUnits
Summary
The StockUnits
loop lets you display information about the stock unit for a product.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Ecom:StockUnit.Quantity
Returns the amount/quantity of the unit registered at the stock location.
@GetDouble("Ecom:StockUnit.Quantity")
Ecom:StockUnit.StockLocation
Returns the name of the stock location.
@GetString("Ecom:StockUnit.StockLocation")
Ecom:StockUnit.StockLocationID
Returns the ID of the stock location.
@GetInteger("Ecom:StockUnit.StockLocationID")
Ecom:StockUnit.TotalQuantity
Returns the total quantity/amount of the specific unit for all stock locations..
@GetDouble("Ecom:StockUnit.TotalQuantity")
Ecom:StockUnit.TotalVolume
Returns the total volume of the specific unit for all stock locations.
@GetDouble("Ecom:StockUnit.TotalVolume")
Ecom:StockUnit.TotalWeight
Returns the total weight of the specific unit for all stock locations.
@GetDouble("Ecom:StockUnit.TotalWeight")
Ecom:StockUnit.Volume
Returns the volume of the stock unit.
@GetDouble("Ecom:StockUnit.Volume")
Ecom:StockUnit.Weight
Returns the weight of the product registered at the stock location.
@GetDouble("Ecom:StockUnit.Weight")
Available loops
StockLocations
The StockLocations
loop lets you display information about the stock locations for a product.
@foreach (LoopItem item in GetLoop("StockLocations")){ <p>@item.GetValue("TagName")</p> }