- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 09:37 AM
I have a scoped app and have created a Search Source and have a custom facet generation script that is showing my list. The issue I'm having is when I click Under $25 or any other one it is passing this: price=str: (with the str:).
I know you can use mapped facet filters but in order to do that this has to be done in global to access that table, and that is not where I want to create it.
I have tried "<=javascript:global.getCurrencyFilter('sc_cat_item','price',USD;25)"
var xxx = facetService.createFacet('Price','price);
xxx.addFacetItem('Under $25'," _____");
xxx.addFacetItem($25 and above'," _____");
Any help would be great..
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2021 03:55 AM
Second value in addFacetItem has to be an array .
Check the below link for the reference.
Under section
createMultiChoiceFacet
Mark my ANSWER as CORRECT and HELPFUL if it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2021 03:55 AM
Second value in addFacetItem has to be an array .
Check the below link for the reference.
Under section
createMultiChoiceFacet
Mark my ANSWER as CORRECT and HELPFUL if it helps