You are here:  » Automatic load filter


Automatic load filter

Submitted by wesse249 on Mon, 2015-08-24 19:04 in

Hello,

Is it possible that when a visitor select a category in the jumpbox this is automaticly load?

This option als o when the visitor select brand or merchant.

Now you have to click on filter button to filter the results.

Thanks Jan Roel

Submitted by support on Tue, 2015-08-25 08:07

Hello Jan,

Yes you can do this - in html/searchfilters.php, using merchantFilter as an example search for the code that generates the opening <select... tag:

  print "<select name='merchantFilter'>";

...and REPLACE with:

  print "<select onChange='JavaScript:this.form.submit();' name='merchantFilter'>";

Then insert the same onChange attribute to the opening select tags for the categoryFilter and brandFilter.

Cheers,
David.
--
PriceTapestry.com

Submitted by wesse249 on Wed, 2015-08-26 06:25

Thank you, Is it also possbile that all categories stay visible?

At this moment when you select a category you only see the word all and the selected category.

Thank you.

JR

Submitted by support on Wed, 2015-08-26 07:28

Hello Jan,

If you edit html/searchfilters.php you can leave all options visible by searching for each instance of:

$where.$priceWhere

...and REPLACE with just:

$where

Do be aware however that this would mean that it would be possible for the user to select a filter combination for which no results are found...

Cheers,
David.
--
PriceTapestry.com