How can I get drupal's search box to search through products available in ubercart's catalog ?
Thanks
|
Ubercart |
|
|
|
||
|
Fri, 02/08/2008 - 18:15
How can I get drupal's search box to search through products available in ubercart's catalog ? Thanks
Re: get drupal search box to search products as well
Hmm... it should be doing this automatically. You have to run cron for items to be indexed for search. Try browsing to cron.php on your site and then searching again.
Re: Re: get drupal search box to search products as well
thanks Ryan. I cronned it and voila - the search worked. Thanks
Re: Re: Re: get drupal search box to search products as well
One thing I think would be useful would be to modify the default Ubercart search so that product results come up first, before any matches in blogs, comments, or other text on the site. That way people can find the "stuff" they want without having to wade through pages of documentation or other talk. This starts to matter when your site is more than just a catalog - i.e., when you start using the power of Drupal to add value to your store. I've had this on my to-do list for a while - anyone want to opine on how this should work before I start coding?
Re: Re: Re: Re: get drupal search box to search products as well
My immediate response would be results sorted under headings : Products | other, etc. Maybe a "Filter by"...
Re: Re: Re: Re: Re: get drupal search box to search products as
My first suggestion is to use Views... Lullabot explains how to do a views search here: http://www.lullabot.com/articles/custom_search_forms_views_and_fastsearch I know it won't work right out of the box the way you want.. but maybe with the usage of creating a Page that combines views / hooking into the Views API directly? I know you can use view_build_view and pass arguments to it. Just a thought .. I'd have to think about it more. |
|