Ecom:CustomerCenter.Search.Products
Version: - stringSummary
Returns product option values for the product dropdown used to filter the search result.
Settings
The values are based on products ordered by the customer, i.e. in all orders associated with the current customer.
Remarks
The tag should be included in a HTML <select>
tag.
Examples
Outputting the template tag
@GetString("Ecom:CustomerCenter.Search.Products")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:CustomerCenter.Search.Products"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:CustomerCenter.Search.Products");
}
Outputting the template tag
<!--@Ecom:CustomerCenter.Search.Products-->
Check if string has a value
<!--@If Defined(@Ecom:CustomerCenter.Search.Products)-->
Let's output this tag here: <strong><!--@Ecom:CustomerCenter.Search.Products--></strong>
<!--@EndIf(@Ecom:CustomerCenter.Search.Products)-->