Product category search Options
Bernard
Posted: Friday, August 04, 2006 11:10:39 AM
Rank: Newbie

Joined: 8/4/2006
Posts: 2
Hello everybody,

I'm trying to implement a product search by category:
On my product document, I have a tab with 2 drop down multiple, one for product category and one for product shipping methd.

When creating a new product page, the writer can pick one or more categories and one or more shipping method that apply to the product.

Now, I would like set up a page to let the the visitors search the products by categories, selecting one or more categories and selecting one or more shipping methods.

I'm puzzled how to start this feature : can it be done purely with XSLT or do I need to implement a .NET control ? and how ?

Thanks for your help.
Bernard
neehouse
Posted: Friday, August 11, 2006 5:05:27 AM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,074
Location: Charleston, West Virginia, United States
ughh, tough question...

Depending on the number of products, the xslt solution may be a bit slow. Also, you will have to do a lot of splits, and your own result ranking. There is an <em>XSLT search</em> floating around which would be a good starting place.

Writing a custom search control may be a better solution, however, it may not be any easier. It may be a good idea to look at the umbracoUtilities, and write your own query parser and results control based upon that. This way you could possibly do the multiple category thing.

Using <em>umbracoUtilities</em> search could possibly work, though I have not succeeded with the <em>advanced</em> searches. You could pass the lucene engine field names, and it is suppose to return results based upon, ie Category:"NEW PRODUCTS" (which you would probably pass the ID).

Basically, having the option to search/select multiple categories at once is going to be your main problem.

I would suggest starting off with a single category search, and go from there.

Sorry I can't be of much more help...
Case

• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
Bernard
Posted: Thursday, August 17, 2006 10:29:54 AM
Rank: Newbie

Joined: 8/4/2006
Posts: 2
Hello Casey,

Thanks a lot for the directions !
However, I can't find the sources of the Umbraco Utilities...Do I need to look in the svn repository ?

neehouse
Posted: Thursday, August 17, 2006 2:45:21 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,074
Location: Charleston, West Virginia, United States
Yes, the source for utilities is in the SVN.

[link]svn://svn.umbraco.org/var/lib/svn/umbraco-extensions[/link]

• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.