Ecom:StockLocation.Quantity

Version: - double  

Summary

Returns the amount/quantity of products registered at the stock location.

Settings

The value is based on the Amount field for the stock location selected in Stock for the product.

(Ecommerce > Product catalog > Shop > Group > Product > Stock > Edit stock info > Amount)

Remarks

Stock locations are created in Management center > Ecommerce > Product catalog > Stock location.

Examples

Outputting the template tag

@GetDouble("Ecom:StockLocation.Quantity")

Check if tag has a value

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

Assign tag to a value for later use

@{ double storedTag = GetDouble("Ecom:StockLocation.Quantity"); }

Outputting the template tag

<!--@Ecom:StockLocation.Quantity-->

Check if double has a value

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