Ecom:Product.CompareID

Version: - string  

Summary

Returns an ID for the product used for the compare functionality.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Ecom:Product.CompareID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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