Developer forum

Forum » Ecommerce - Standard features » Odd behavior with Facets

Odd behavior with Facets

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I am experiencing an odd behavior with some Facets for the. Consider this screencast https://www.screencast.com/t/fqv8pDpuXlQp

 

Took me a while to get this in reproduceble steps, understanding why sometimes facet options would always show and sometimes not. Even while writing this thread I had to go back to ensure I got proper repro steps. The best I can explain is that the very first facet a user selects will always show all facet options, while all others are only listing just the available options.

 

Using DW 9.10

  • Go to /products in Rapido
  • Filter by any facet
  • Notice how all facet options for that facet are still available
  • Notice how all other facets have updated options

 

I tried with a clean install of Rapido in this next screencast and doesn't even seem to be related to the first facet I select https://www.screencast.com/t/JNmC2VqqkR. I started noticing this in 9.10.0 and upgraded to 9.10.7 and got the same result.

 

Seems like a bug, but maybe I am missing something.

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

Could it be this setting maybe:

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

I meant to talk about that too. It's unchecked. And in the screencast you can see the behavior is not consistent, where some facets render all options (as if that checkbox was enabled) while others don't. And this is with a clean Rapido installation. Although it is an older Rapido installation, I started noticing this after 9.10.0

 

BR

Nuno Aguiar

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi

I've checked the issue using Rapido 3.4.3 solution based on DW9.10.7/DW9.9.7/DW9.8.10 admins and saw the same results like in last video - facet options have a result are always shown if an option is selected (ones do not have a result can be got avaialble via the option described below). It seems to be feature but not a bug.

BR, Oleg QA 

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Oleg,

 

I don't think I made myself clear then. Let me give it another try.

 

Consider this new screencast https://www.screencast.com/t/Izxi6Zfco

  • I go to Type
  • I click a facet option that has only 2 results
  • The product list refreshes and we see 2 results - perfect
  • BUT we still see all of the other facet options but those values are not valid for those 2 results - instead they are part of other results
  • Notice that the Brand facet options were updated and only reflect the 2 possible/valid values for that result set

 

If we flip the logic and filter by brand first, here's the result https://www.screencast.com/t/N4UpwAk06a

  • I go to Brand
  • I select Wald
  • The product list refreshes and we see 1 result - perfect
  • BUT we still see all of the other Brands - when I should only be seeing "Wald" now
  • Notice that this time the Type facet is properly listing the only available option

 

It looks like the facet behavior is different for the first facet the user clicks, and that's what's odd to me. As if for the first facet the user interacts with, Dynamicweb always renders all facet options regardless of the results, and all other facets are then properly handled.

 

Hope this makes more sense now. Let me know as I am curious to see if this is truly by design or not.

 

Best Regards,

Nuno Aguiar

 

 

 
Nicolai Pedersen
Reply

Hi Nuno

What you describe is exactly how facets should work and how they have always worked...

The idea is, and how all other websites work, is that you can see i.e. shoes - and then I can filter out all blue and red and then the other options will reflect what else is possible. Try i.e. Nike or Amazon and see if you can explain how they work differently from what you describe and show.

Or do we misunderstand you....?

BR Nicolai

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

I kept saying to myself that I needed to answer this ever since I got your latest.

You are accurate that Dynamicweb always worked like that. I looked at Nike and Amazon and I do see the same behavior.

  • On Nike https://www.screencast.com/t/PoecqbeHN0
    • Feels like Brand and Shop by Price facets always show "empty options" facets (i.e. if you select a price range, then there shouldn't be other options. Same with Brand, unless we assume shoes may have multiple brands instead of just one.
    • Gender on the other hand seems to remove options with 0 results
  • On Amazon https://www.screencast.com/t/S4Abnxev
    • Contrary to Nike, when filtering by price they don't show the other options 
    • It feels like the decision to show/hide options depends on the order of choosing the facets
      Consider "Connectivity type" - Initially there are a few options but then they get removed
    • I figured out the pattern for them
      • Some facets (like Price) they choose to hide empty options
      • Other facets (like Connection type) they choose to show empty options as disabled, if that facet is selected https://www.screencast.com/t/DnEVJ0UocYa3

 

So, although I am not asking for any changes specifically (until our next crazy customer cheeky) looks like other companies manage empty options per facet (instead of for all facets like we do). Something like (per facet):

  • Show empty options:
    • Never
    • Always
    • When facet is selected

 

Hope that makes sense. At least to me I feel less confused smiley

 

Nuno Aguiar

 

You must be logged in to post in the forum