• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

leem
#1 Posted : Thursday, June 19, 2008 10:11:57 AM(UTC)
leem

Rank: Member

Joined: 3/14/2008(UTC)
Posts: 10

When you hide a category it still shows up in the category dropdown list on the search page?
Is this by design or am I missing something?
Mark H
#2 Posted : Friday, June 20, 2008 10:17:21 AM(UTC)
Mark H

Rank: Member

Joined: 12/19/2006(UTC)
Posts: 153

by un-intentional design :) i.e. a bug.



I too have noticed this. By bandaid solution was to just remove the category dropdown from the search.
punkydeveloper
#3 Posted : Tuesday, June 24, 2008 4:52:48 AM(UTC)
punkydeveloper

Rank: Member

Joined: 4/18/2008(UTC)
Posts: 12

I'm having the same problem.

Could remove the category drop down from the search, but that's a far from ideal solution and could effect sales. Also, can't just delete the category as I'd have to re-assign all the products when I wanted to reactivate the category.

I've managed a small hack type fix that works as far as I can tell, but I'm not sure about the effect it has on execution speed.

Here's the fix in all it's glory (Mods - if I'm not suppose to do this because of something in the terms and conditions, then let me know and I'll remove it)
In the code behind for the SearchCriteria.ascx file (\BVModules\Controls\SearchCriteria.ascx.vb for me) find the sub routine called LoadSettings.
Change the lines
Code:

Dim cats As Collection(Of ListItem) = Catalog.Category.ListFullTreeWithIndents
For Each li As ListItem In cats
Me.CategoryField.Items.Add(li)
Next


to read

Code:

Dim cats As Collection(Of Catalog.Category) = Catalog.Category.FindVisibleChildren("0")
For Each c As Catalog.Category In cats
Dim li As New System.Web.UI.WebControls.ListItem
li.Value = c.Bvin
li.Text = c.Name
Me.CategoryField.Items.Add(li)
Next
Punkyduck Technical Media Agency
Forum Jump  
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012