A storefront sorting option allows customers to sort search results already returned by a category or keyword search. Any storefront sorting options you configure appear in the Sort By dropdown list at the top of search results. All storefront sorting options are available site-wide.
Any time a customer sees a list of products, there is a default sorting rule applied that sorts the results. However, you can add sorting options for the customer, such as sorting by price, size, or brand, beyond the sorting rule applied when the search results are first shown. You can use the default storefront sorting options provided in the SiteGenesis application or create your own sorting rules and use them as storefront sorting options. There is only one list of storefront sorting rules for your entire storefront, so any sorting rules you select as sorting options must apply to all product categories.
You can create up to 100 sorting options.
To see these options, perform a search in the SiteGenesis application or navigate to any page that shows products. At the top of the product grid, you see the Sort By list. This list shows the sorting rules selected as storefront sorting options.
Storefront options are implemented as a module in SiteGenesis.
The util/module.isml
template defines the
search/components/productsortingoptions.isml
template as a module. The
search/components/productsortingoptions.isml
template defines how
storefront sorting options are retrieved from Business Manager.
The rendering/categoryproducthits.isml
template implements the
isproductsortingoptions
model.
Storefront sorting options are sorting rules that customers can apply to their search results. For example, if they want to reorder search results in terms of price, brand name, or release date.