Ecom:Product.Link1

Version: - string  

Summary

Returns a product link.

Settings

The value is based on the 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.Link1")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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