View Single Post
  #11  
Old 01-31-2013, 08:08 AM
 
vladimir.gritsenko vladimir.gritsenko is offline
 

X-Cart team
  
Join Date: Aug 2005
Posts: 202
 

Default Re: Refine Filters module released

Quote:
Originally Posted by not_so_young_greg
There is something I do not quite understand about this module: It is said it works with product variants but does it?

Lets create a product that has option class "size" populated with S,M,L. Now lets make it as variants and put 0 in size S - (somebody has just bought your last S). X-cart shows S properly as "out of stock". But one can still filter by size S and get this product listed, even if "in stock only" checkbox is checked.

It does not make much sense for me - I believe if a customer wants to find size S, he should get products that have S available, especially with "in stock only" checked. He filters for S that is in stock, right? Or am I missing something?

Thanks for noticing it. Actually, this is a tricky issue. Let me try to explain.

Imagine there are two classes with two options each, combined in four variants. For example,

Color: Red, Green
Size: S, L

the resulting variants are:

Red S
Red L
Green S
Green L

Now, let's say "Red S" variant is out of stock. How in this case should the filtering behave? In fact, there is no problem if the filters selection is as follows:

Color: Red
Size: S

In this case we can disable "In stock only" filter but what if it's chosen like:

Color: [not selected]
Size: S

or

Color: Red, Green
Size: S

Should it disable "In stock only" filter in these particular cases? It's a hard question, isn't it?

This is a very basic variants example. Imagine, there are 10 classes with 10 options each. A customer will have to choose one and only one attribute from each variants-related filter to have "In stock only" react basing on variants stock levels.

Nevertheless, I've registered this in our bugtracker - we will think what can be done here. Your suggestions will be much appreciated.

Thank you.
__________________
Sincerely yours,
Vladimir Gritsenko
VP Marketing @ X-Cart
Reply With Quote