Developer forum

Forum » Ecommerce - Standard features » Boolean filter with one option

Boolean filter with one option

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

Using Rapido, how do I set up a facet against a boolean that has only one option like Yes? I like to create an "On Sale" facet that, when selected, shows all the products that are on sale (a custom) field, otherwise it shows all products. Currently, a boolean[] field with a checkboxes facet renderer gives me a Yes and a No option. In my case, filtering down to the No options doesn't make a lot of sense, so I only want to enable the Yes option.

Can that be done without custom coding?

Imar


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Imar,

 

Here's the solution https://doc.dynamicweb.com/forum/rapido/rapido/facets-showing-products-with-filed-value-false

 

  • Create a List Facet
  • Only create an option for "True"

 

We've used this a couple of times and works great.

 

Nuno

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Great, just what I needed! Thanks Nuno!

 

You must be logged in to post in the forum