6 replies [Last post]
rolandk's picture
Offline
Joined: 02/06/2008
Juice: 240
Was this information Helpful?

How can I get drupal's search box to search through products available in ubercart's catalog ?

Thanks

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
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.

rolandk's picture
Offline
Joined: 02/06/2008
Juice: 240
Re: Re: get drupal search box to search products as well

thanks Ryan. I cronned it and voila - the search worked. Thanks

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
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?

<tr>.
rolandk's picture
Offline
Joined: 02/06/2008
Juice: 240
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"...

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
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.

--
Help directly fund development: Donate via PayPal!

shv_rk's picture
Offline
Joined: 08/16/2010
Juice: 112
Hello, I have the same issue.

Hello,

I have the same issue. I want to make the drupal search to search for products as well.
I can understand the cron thing you are talking about.
would you explain it more?