Ecom:Product.Link

Version: - string  

Summary

Returns a link to the current product.

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.Link")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Product.Link-->

Check if string has a value

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