Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Hiding filter values that don't return results

$
0
0

Forgive me if this is documented and I missed it somehow, but I'm curious how I might be able to hide filter values on a catalog page that don't return results (products).

Example:

Color (filter)

  • Red (5 products)
  • Blue (2 products)
  • Green (0 products)

In the above example, how do I hide (client-side) or prevent rendering (server-side) the "Green" filter value. I can't think of how this might be possible without directly querying each filter value in the Find index to determine result count before rendering the page. That approach seems rather expensive from a performance standpoint, however.


Viewing all articles
Browse latest Browse all 8020

Trending Articles