Ecom:Product.IsProductInFavoriteList
Version: - booleanSummary
Returns True if the product is added to the favorite list.
Settings
The value is generated automatically.
Remarks
Returns False otherwise.
Examples
Outputting the template tag
@GetBoolean("Ecom:Product.IsProductInFavoriteList")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:Product.IsProductInFavoriteList"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("Ecom:Product.IsProductInFavoriteList");
}
Outputting the template tag
<!--@Ecom:Product.IsProductInFavoriteList-->
Check if boolean has a value
<!--@If Defined(@Ecom:Product.IsProductInFavoriteList)-->
Let's output this tag here: <strong><!--@Ecom:Product.IsProductInFavoriteList--></strong>
<!--@EndIf(@Ecom:Product.IsProductInFavoriteList)-->