Version: - string  


Returns a link (containing the Group ID) to the product.


The value is generated automatically.


The value is returned as a HTML code snippet containing an "a href" like this:

<a href="Default.aspx?ID=143&GroupID=GROUP10&ProductID=PROD28">Chrysanthemum</a>

This product link contains the Group ID which means that the url can be converted to contain the group name if the "eCommerce group path (GroupID)" addin is enabled in customized url's:



Ecom:Product.LinkGroup.Clean: Returns the clean product url.
Example: Default.aspx?ID=143&GroupID=GROUP10&ProductID=PROD28
Ecom:Product.LinkGroup.Clean.PID: Returns the clean product url including the PID (Paragraph ID)
Example: Default.aspx?ID=143&GroupID=GROUP10&ProductID=PROD28&PID=177
Ecom:Product.LinkGroup.PID Returns the url as a HTML code snippet containing an "a href" including the PID (Paragraph ID).


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag


Check if string has a value

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