SFRA Server-side Javascript - Class: ProductSortOptions menu

SFRA / Server-side JS / Class: ProductSortOptions

ProductSortOptions

Model that encapsulates product sort options

Constructor

new ProductSortOptions(productSearch, sortingRuleId, sortingOptions, rootCategory, pagingModel)

Parameters:
Name Type Description
productSearch dw.catalog.ProductSearchModel

Product search instance

sortingRuleId string | null

HTTP Param srule value

sortingOptions dw.util.List.<dw.catalog.SortingOption>

Sorting rule options

rootCategory dw.catalog.Category

Catalog's root category

pagingModel dw.web.PagingModel

The paging model for the current search context

Source: