Ecom:Product.Link2

Version: - string  

Summary

Returns (a second) product link.

Settings

The value is based on the Alt. link input field under the Media tab for a product.

(eCommerce > Product Catalog > Product group/product > Media tab > Media panel)

Examples

Outputting the template tag

@GetString("Ecom:Product.Link2")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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