KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: nickgk on March 26, 2008, 01:45:31 pm

Title: Quick Search
Post by: nickgk on March 26, 2008, 01:45:31 pm
Hello,

I would like for the quick search mechanism to include the product description field in its normal default search functionality. I plan to not include the advanced search in my application at all. I analyzed the Advanced Search form and then added the following hidden field (see below) to the Quick Search form and it did not have the desired effect. Is there a way to achieve this? It certainly seems to me that searches should include the description fields by default. Many thanks in advance for any info on this.

<input  name="searchInDescription" type="hidden" value="on">

Regards,
Nick Kelischek
Title: Re: Quick Search
Post by: pete on March 26, 2008, 02:03:22 pm
Hi,

You should look at QuickSearchAction.java and AdvancedSearchSubmitAction.java to see the differences. What you need to do is to edit QuickSearchAction.java to set :

ps.setWhereToSearch(ProductSearch.SEARCH_IN_PRODUCT_DESCRIPTION);

-Pete
Title: Re: Quick Search
Post by: nickgk on March 26, 2008, 02:18:47 pm
Worked like a charm. Many thanks...

--Nick