Ecom:Product.VariantLinkGroup.PID

Version: - string  

Summary

Returns a link containing the Group ID, Variant ID and Paragraph ID to the current product variant.

Settings

The value is generated automatically.

Remarks

The value is returned as a HTML code snippet containing an <a> tag.

The link text is the name of the product.

Examples

Outputting the template tag

@GetString("Ecom:Product.VariantLinkGroup.PID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Product.VariantLinkGroup.PID-->

Check if string has a value

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