Ecom:Product.LinkGroupShopContext.Clean
Version: - stringSummary
Returns groupid from a group that is in the shop context we are in.
Settings
The value is generated automatically.
Remarks
So if there are 3 shops with 3 groups and 1 product is member of all 3 groups and one of the groups are primary, this tag will use the groupid from the shop context of the website instead of the primary groupid.
Examples
Outputting the template tag
@GetString("Ecom:Product.LinkGroupShopContext.Clean")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.LinkGroupShopContext.Clean"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.LinkGroupShopContext.Clean");
}
Outputting the template tag
<!--@Ecom:Product.LinkGroupShopContext.Clean-->
Check if string has a value
<!--@If Defined(@Ecom:Product.LinkGroupShopContext.Clean)-->
Let's output this tag here: <strong><!--@Ecom:Product.LinkGroupShopContext.Clean--></strong>
<!--@EndIf(@Ecom:Product.LinkGroupShopContext.Clean)-->