Version: - string  


Returns a link URL for removing the product from a favorite list.


The value is generated automatically.


The value should be assigned to the A href attribute.

Furthermore the tag should be included in If Defined tags, so that the link only is visible when the extranet user is logged in to the customer center, e.g. used with Ecom:Product.IsProductInFavoriteList.


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag


Check if string has a value

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