Ecom:ProductList.SortOrder
Version: - stringSummary
Returns the sort order.
Settings
The value is based on the Sort order field in the product catalog module settings.
(Page - Paragraph - Module - Display - Sort order)
Examples
Outputting the template tag
@GetString("Ecom:ProductList.SortOrder")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:ProductList.SortOrder"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:ProductList.SortOrder");
}
Outputting the template tag
<!--@Ecom:ProductList.SortOrder-->
Check if string has a value
<!--@If Defined(@Ecom:ProductList.SortOrder)-->
Let's output this tag here: <strong><!--@Ecom:ProductList.SortOrder--></strong>
<!--@EndIf(@Ecom:ProductList.SortOrder)-->