Skip to content

Commit

Permalink
add pricerange to the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hiagolcm committed Feb 7, 2020
1 parent 694ee50 commit 0c07bb1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ a more complete search experience.
- [Autocomplete](#autocomplete)
- [Order Options](#order-options)
- [Enhanced Search Result](#enhanced-search-result)
- [PriceRange](#pricerange)
- [Plug & Play](#plug--play)
- [Catalog Integration](#catalog-integration)
- [Admin Permission](#admin-permission)
Expand Down Expand Up @@ -166,6 +167,24 @@ To add these components to your search-result page, you need to use the `search-
}
```

### PriceRange

![pricerange](https://user-images.githubusercontent.com/40380674/74041833-28bb0c80-49a5-11ea-8e20-7720ac63548f.gif)


In order to add the PriceRange feature in the filter navigator, add `priceRangeKey` in the `context` prop of `store.search.v2`. The value is the price filter key (usually `price`, `precio` or `preco`).

```json
"store.search.v2": {
"blocks": ["search-result-layout"],
"props": {
"context": {
"priceRangeKey": "price",
}
}
},
```

### Plug & Play

For our app to be as _Plug & Play_ as possible it's necessary to follow the good conventions for developing
Expand Down

0 comments on commit 0c07bb1

Please sign in to comment.