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 |
OrderBy's new hiddenOptions
prop now allows the component's options to be hidden from user view.
Exemple of OrderBy component displaying all order results options.
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.
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.
Make sure that your store is running Search Result version 3.38.0 or higher.