Post by workwonder01 » Thu Jul 15, 2010 6:29 am

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.

Newbie

Posts

Joined
Thu Jul 15, 2010 3:22 am

Post by JAY6390 » Thu Jul 15, 2010 8:28 am

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 = ''; 

ImageImageImage

SEO MEGA KIT PLUS - Get your site ranking higher in the search engines
Better Product SEO URL's - Perfectly structured product links
SEO URL's Route Editor PRO - Make ANY url on your site have clean keywords - even third party extensions (remove index.php)


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Qphoria » Thu Jul 15, 2010 9:53 pm

added to 1.4.9
Thanks

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by OC2PS » Fri Jul 16, 2010 4:00 am

1.4.9! Yippie!

What's the target release date?

OC2PS
OC 2.3.0.2, vQmod 2.6.2, Journal2 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by Purebeads » Sun Jul 18, 2010 10:38 am

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.

Active Member

Posts

Joined
Fri Apr 30, 2010 12:07 pm

Post by wowo » Fri Aug 27, 2010 10:28 pm

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

Newbie

Posts

Joined
Wed May 26, 2010 6:29 am
Who is online

Users browsing this forum: No registered users and 6 guests