Adding a "Search this Category" box...

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
User avatar
GrfxDan
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 82
Joined: Sat May 26, 2007 10:58 am
Location: Mt Zion, IL
Contact:

Adding a "Search this Category" box...

Post by GrfxDan » Wed Jan 05, 2011 12:18 pm

Can anyone tell me if there's an easy way to add a "Search this Category" search box to the sidebar of category pages? (That would, obviously, only search the category being displayed)

I'm aware of CategorySearch.ascx which allows users to filter results by categories, manufacturers and keywords, but this is not what I want. I want something much simpler: just a search box that will search the current category.

I tried copying the CategorySearch.ascx and just hiding all of the extra functionality but it didn't work; the hidden sections wouldn't fully collapse, leaving a lot of extra whitespace in the sidebar, and the search box ceased to function and would just disappear when you attempted to use it. Is there an easier way to accomplish this?
Image

User avatar
GrfxDan
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 82
Joined: Sat May 26, 2007 10:58 am
Location: Mt Zion, IL
Contact:

Re: Adding a "Search this Category" box...

Post by GrfxDan » Sun Jan 09, 2011 1:01 pm

Anyone?
Image

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Adding a "Search this Category" box...

Post by mazhar » Mon Jan 10, 2011 5:45 am

You need to create some custom conlib control to do this. For reference you can see narrowing controls from ConLib.

User avatar
GrfxDan
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 82
Joined: Sat May 26, 2007 10:58 am
Location: Mt Zion, IL
Contact:

Re: Adding a "Search this Category" box...

Post by GrfxDan » Mon Jan 10, 2011 9:23 am

mazhar wrote:For reference you can see narrowing controls from ConLib.
Forgive my ignorance, I'm not sure what you mean by this. Can you explain?
Image

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Adding a "Search this Category" box...

Post by mazhar » Tue Jan 11, 2011 4:38 am

I mean use some category related conlib control for reference while developing your custom control. For example you can check ConLib/CategorySearchSidbar control's code.

User avatar
GrfxDan
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 82
Joined: Sat May 26, 2007 10:58 am
Location: Mt Zion, IL
Contact:

Re: Adding a "Search this Category" box...

Post by GrfxDan » Tue Jan 11, 2011 11:23 am

Thanks for the reply. That's actually what I already tried doing. My knowledge of .NET isn't very good and I wasn't able to hide/remove the extra search filters successfully, thus why I came here looking for help.
Image

User avatar
hassonmike
Lieutenant (LT)
Lieutenant (LT)
Posts: 76
Joined: Tue Apr 19, 2011 2:13 pm
Contact:

Re: Adding a "Search this Category" box...

Post by hassonmike » Tue Apr 17, 2012 4:23 pm

Was there ever any success with this? If so, please provide solution! Thanks!

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Adding a "Search this Category" box...

Post by jmestep » Wed Apr 18, 2012 7:29 am

You can take the category dropdown list from the advanced search page as an example. Then on postback for the selected category, you can pass something like Search.aspx?c=3 , where 3 would be the category. The search.aspx does look for c in the querystring.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply