Ecom:Product.PrimaryOrFirstGroupID
Version: - stringSummary
Returns the ID of the primary or the first product group.
Settings
The value is generated automatically
Examples
Outputting the template tag
@GetString("Ecom:Product.PrimaryOrFirstGroupID")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.PrimaryOrFirstGroupID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.PrimaryOrFirstGroupID");
}
Outputting the template tag
<!--@Ecom:Product.PrimaryOrFirstGroupID-->
Check if string has a value
<!--@If Defined(@Ecom:Product.PrimaryOrFirstGroupID)-->
Let's output this tag here: <strong><!--@Ecom:Product.PrimaryOrFirstGroupID--></strong>
<!--@EndIf(@Ecom:Product.PrimaryOrFirstGroupID)-->