Page 1 of 1

Product Search function

Posted: Thu Jul 15, 2010 6:29 am
by workwonder01
When the user search the products without specifying a keyword, currently it does not show any results. Can you change it to show something, e.g. to show all products in the default order.

Some people may just want to see something by clicking the search button.

Re: Product Search function

Posted: Thu Jul 15, 2010 8:28 am
by JAY6390
There's a quick and dirty hack that will do this
in your /catalog/controller/product/search.php put

Code: Select all

if(empty($this->request->get['keyword'])) $this->request->get['keyword'] = '%'; 
at the top of the file just above the first

Code: Select all

$url = ''; 

Re: Product Search function

Posted: Thu Jul 15, 2010 9:53 pm
by Qphoria
added to 1.4.9
Thanks

Re: Product Search function

Posted: Fri Jul 16, 2010 4:00 am
by OC2PS
1.4.9! Yippie!

What's the target release date?

Re: Product Search function

Posted: Sun Jul 18, 2010 10:38 am
by Purebeads
Qphoria, are you saying that the search button will function that way starting in 1.4.9? Or are you saying that there will be an All Products module in 1.4.9?

Personally, it strikes me as odd that clicking Search without a search term specified should bring up a list of all the products.

Re: Product Search function

Posted: Fri Aug 27, 2010 10:28 pm
by wowo
I have products (offers to be specific) in my store and would like the client to be able to search based on the dates this offer is available? Like: Trip to Bahamas, depart/arrive dates and be able to search upon that. How hard would it be to implement such functionality?

/w