Ecom:ProductList:Page.PID
Version: - integerSummary
Returns the ID of paragraph with the product details.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetInteger("Ecom:ProductList:Page.PID")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:ProductList:Page.PID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Ecom:ProductList:Page.PID");
}
Outputting the template tag
<!--@Ecom:ProductList:Page.PID-->
Check if integer has a value
<!--@If Defined(@Ecom:ProductList:Page.PID)-->
Let's output this tag here: <strong><!--@Ecom:ProductList:Page.PID--></strong>
<!--@EndIf(@Ecom:ProductList:Page.PID)-->