Ecom:StockLocation.ID
Version: - integerSummary
Returns the ID of the stock location.
Settings
The value is generated automatically.
Remarks
Stock locations are created in Management center > Ecommerce > Product catalog > Stock location.
Examples
Outputting the template tag
@GetInteger("Ecom:StockLocation.ID")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:StockLocation.ID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Ecom:StockLocation.ID");
}
Outputting the template tag
<!--@Ecom:StockLocation.ID-->
Check if integer has a value
<!--@If Defined(@Ecom:StockLocation.ID)-->
Let's output this tag here: <strong><!--@Ecom:StockLocation.ID--></strong>
<!--@EndIf(@Ecom:StockLocation.ID)-->