Developer forum

Forum » Ecommerce - Standard features » Dropdown instantSearch

Dropdown instantSearch

Per Jensen
Reply

Im playing around with the Solution set atm, and came across this thread :

http://developer.dynamicweb-cms.com/forum/development/search-filters-as-a-select-box.aspx

After reading it, i desided to try it out, so i made a dropdown filter.

My question is, how do i get it to react and do a instant search when i switch the value ?

If i switch the value, and get instant secarch running by using one of the standard filters, i can see it use the value fine in the search and it set the dropdown to the selected value after search also. But when i switch the dropdown alone, instant search isent done.


Replies

 
Per Jensen
Reply

I ended up adding :

$("select.filter-options").change(function () {

eCommerce.Filters.beginSubmit();

});

to the filter.js file.

Just have to remember to put class="filter-options" on the select tag also.

 

You must be logged in to post in the forum