Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (19 loc) · 1.67 KB

search-result-orderby.md

File metadata and controls

32 lines (19 loc) · 1.67 KB
title description date git
Search Result OrderBy
OrderBy’s new `hiddenOptions` prop does away with the component’s forced exhibitionism. Its options can now either be hidden or displayed according to the retailer’s chosen scenario.
11/25/2019

Search Result OrderBy

OrderBy's new hiddenOptions prop now allows the component's options to be hidden from user view.

orderby-gif Exemple of OrderBy component displaying all order results options.

What has changed

Prior to this release, you could not determine which options OrderBy should or should not display, due to the fact that all were hardcoded by the component.

The new hiddenOptions prop allows you to configure the block so that options can be hidden when redering the component.

Main advantages

VTEX's search context necessarily supports ordering products by all options provided by OrderBy, however other search engines/systems may not support it, forcing retailers to display an option which does not return any results to users.

While most stores use VTEX's search system, OrderBy's lack of flexibility tied all stores to it, whether out of the retailers own volition or not.

The new prop therefore offers retailers greater freedom and makes the component adaptable to the store's different business scenarios.

What you need to do

Make sure that your store is running Search Result version 3.38.0 or higher.