tags:

views:

17

answers:

0

Hello. I have some filters on the left... At the right there is a div placeholder where products are shown... When a user chooses a filter , products on the right should be filtered and non available filters(filters that if are selected there would be no results) should be disabled. The filters are dynamic.. Adding custom tags to objects seems not to be a solution because itsnot valid.So one option is adding the product features in class.

<li id="product_44" class="mplah  filter_gender=4 filter_color=red" ></li>

Using jquery selectors seems easy to limit the results...But then the most difficult part is to decide which filters should be disabled after that. I could run a jquery command for each filter to check whether at least one result refer to it but i am afraid that it can be painfully slow.. Any other ideas?