Version: - string  


Returns groupid from a vaiant group that is in the shop context we are in.


The value is generated automatically.


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 varian groupid from the shop context of the website instead of the primary groupid


Outputting the template tag


Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.VariantLinkGroupShopContext.Clean"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.VariantLinkGroupShopContext.Clean"); }

Outputting the template tag


Check if string has a value

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