Skip to content

SHIFT SEARCH: Specifying Sort Orders Drop Down #34

@simonireilly

Description

@simonireilly

Feature

We will now have a list of replicas that can be accessed from search.

This list of replicas is currently hard coded in:

<div className='c-product-listing__menu-options-sort-by'>
<h2 className='c-product-listing__menu-options-sort-by-title'>Sort by:</h2>
<SortBy defaultRefinement={indexName}
items={[
{ value: indexName, label: 'Featured' },
{ value: `${indexName}_product_rating_asc`, label: 'Rating asc.' },
{ value: `${indexName}_product_rating_desc`, label: 'Rating desc.' }
]}
/>
<this.Button className='c-product-listing__menu-options-sort-by-button u-hidden-d' />

We should update this to show the replicas that are now set using the Platform API.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions