Results Page Methods
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.
--- title: Results Page Methods excerpt: '' deprecated: false hidden: false metadata: title: '' description: '' robots: index next: description: >- All methods below are as if the Smart Search object has a reference variable defined as shown in this code snippet. ```javascript title="Smart Search (Results Page) methods reference" const ResultsPage = window.Rebuy.SmartSearch.resultsPage.view; ``` _This is not a complete list of the globally available function but the ones that we find most helpful._ <dl> <dt><a href="#shouldShowAggregatedFilters">shouldShowAggregatedFilters</a> ⇒ <code>boolean</code></dt> <dd><p>Returns mapped filters by combining merchant search filter settings & search result matched filters.</p> </dd> <dt><a href="#shouldShowSortBy">shouldShowSortBy</a> ⇒ <code>boolean</code></dt> <dd><p>Determines if search should show sort by settings.</p> </dd> <dt><a href="#shouldShowFilterAndSort">shouldShowFilterAndSort</a> ⇒ <code>boolean</code></dt> <dd><p>Determines if search should show the header section where filter and sort by settings displays.</p> </dd> <dt><a href="#getProductFilters">getProductFilters</a> ⇒ <code>Array</code></dt> <dd><p>Returns results page filter settings in index sorted order.</p> </dd> <dt><a href="#getSortFilters">getSortFilters</a> ⇒ <code>Array</code></dt> <dd><p>Returns results page sort by settings in index sorted order.</p> </dd> <dt><a href="#shopCurrencySymbol">shopCurrencySymbol</a> ⇒ <code>string</code></dt> <dd><p>Returns shop currency symbol.</p> </dd> <dt><a href="#handleDefaultSearchQueryState">handleDefaultSearchQueryState</a> ⇒ <code>Object</code></dt> <dd><p>Returns the default search query for results page search.</p> </dd> <dt><a href="#showFilterFlyout">showFilterFlyout</a> ⇒ <code>void</code></dt> <dd><p>Display the filter flyout if the template has its code.</p> </dd> <dt><a href="#hideFilterFlyout">hideFilterFlyout</a> ⇒ <code>void</code></dt> <dd><p>Hide the filter flyout if the template has its code.</p> </dd> </dl> ## shouldShowAggregatedFilters Returns mapped filters by combining merchant search filter settings & search result matched filters. **Kind**: global constant **Returns**: <code>boolean</code> <a name="shouldShowAggregatedFilters"></a> ## shouldShowSortBy Determines if search should show sort by settings. **Kind**: global constant **Returns**: <code>boolean</code> <a name="shouldShowSortBy"></a> ## shouldShowFilterAndSort Determines if search should show the header section where filter and sort by settings displays. **Kind**: global constant **Returns**: <code>boolean</code> <a name="shouldShowFilterAndSort"></a> ## getProductFilters Returns results page filter settings in index sorted order. **Kind**: global constant **Returns**: <code>Array</code> <a name="getProductFilters"></a> ## getSortFilters Returns results page sort by settings in index sorted order. **Kind**: global constant **Returns**: <code>Array</code> <a name="getSortFilters"></a> ## shopCurrencySymbol Returns shop currency symbol. **Kind**: global constant **Returns**: <code>Array</code> <a name="shopCurrencySymbol"></a> ## handleDefaultSearchQueryState Returns the default search query for results page search. **Kind**: global constant **Returns**: <code>Array</code> <a name="handleDefaultSearchQueryState"></a> ## showFilterFlyout Display the filter flyout if the template has its code. **Kind**: global constant **Returns**: <code>boolean</code> <a name="showFilterFlyout"></a> ## hideFilterFlyout Hide the filter flyout if the template has its code. **Kind**: global constant **Returns**: <code>boolean</code> <a name="hideFilterFlyout"></a> --- 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.