Skip to content

Results Page Methods

All methods below are as if the Smart Search object has a reference variable defined as shown in this code snippet.

const ResultsPage = window.Rebuy.SmartSearch.resultsPage.view;

This is not a complete list of the globally available functions but the ones that we find most helpful.

shouldShowAggregatedFilters

Returns mapped filters by combining merchant search filter settings & search result matched filters.

Kind: global constant Returns: boolean

shouldShowSortBy

Determines if search should show sort by settings.

Kind: global constant Returns: boolean

shouldShowFilterAndSort

Determines if search should show the header section where filter and sort by settings displays.

Kind: global constant Returns: boolean

getProductFilters

Returns results page filter settings in index sorted order.

Kind: global constant Returns: Array

getSortFilters

Returns results page sort by settings in index sorted order.

Kind: global constant Returns: Array

shopCurrencySymbol

Returns shop currency symbol.

Kind: global constant Returns: Array

handleDefaultSearchQueryState

Returns the default search query for results page search.

Kind: global constant Returns: Array

showFilterFlyout

Display the filter flyout if the template has its code.

Kind: global constant Returns: boolean

hideFilterFlyout

Hide the filter flyout if the template has its code.

Kind: global constant Returns: boolean


Customize how your search results appear to shoppers. Optimize Search Results for Conversions. The presentation of search results holds equal significance to their content. Enable flexible modifications with configurable Filters and Sort By options, and gain insights into how shoppers utilize these modifiers to discover and purchase desired products.

See something that needs updating? Suggest an edit