Ecom:Product.AddToFavorites

Version: - string  

Summary

Returns a link URL for adding the product to a favorite list.

Settings

The value is generated automatically.

Remarks

The tag is only available when logged in with extranet user.

The value should be assigned to the A href attribute.
Furthermore the tag can be included in If Defined tags, so that the link only is visible when the extranet user is logged in to the customer center - or used with the Ecom:Product.IsProductInFavoriteList tag.

Examples

Outputting the template tag

@GetString("Ecom:Product.AddToFavorites")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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