Facet Generation Script

johnk1
Kilo Contributor

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.

1 ACCEPTED SOLUTION

Ct111
Giga Sage

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

View solution in original post

1 REPLY 1

Ct111
Giga Sage

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