BV Commerce Forum
»
BV Commerce Support
»
General Support
»
Side Menu - stop shifting of the selected catagory
Rank: Member
Joined: 6/10/2004(UTC) Posts: 101
|
I have two issues, actually.
1. How can I get the side menu catagories to be static even when selected? I don't want them to shift down slightly, like they do, when a previous catagory is slected. It is doing this only when the catagory has sub-catagories. I have the sub-catagories "hidden" in in the side menu. This slight shift is very annoying.
2. A similar thing happens on the product page with the image column. I am using the BV4 product template. I also have bread crumbs off and the product image all the way at the top of the column. When an product choice of any kind is selected, the image column shifts down a 1/4" or so? Is it trying to make room for the bread crumbs? How can I stop this shift?
Thanks,
Tom
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
What theme did you use to build from, or did you start from scratch? 1. Not sure. I don't have any cats w/subs. 2. There was a discussion on this a few months ago: http://forums.bvcommerce...lt.aspx?f=78&m=48557 |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
This is probably more of a theme question. Do you have the store online where we can take a look? |
|
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
Tom,
On 2, the shift, I think, is making room for any out of stock message that might need to be displayed. we had our out of stock message moved to above the add to cart button (so that it would be more apparent), and now the "shift" happens with the buttons and not the image. |
|
|
|
|
Rank: Member
Joined: 6/10/2004(UTC) Posts: 101
|
For issue 2, changing the OutOfStock page according to the previous forum discussion worked great! Thanks, MitchA.
For issue 1, I'm not sure what is causing the problem. Cliff, I am using TekGear theme but my store isn't live yet. Any suggestions where to start?
Tom
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Greg, what browser are you seeing issue #1 in? |
|
|
|
|
Rank: Member
Joined: 6/10/2004(UTC) Posts: 101
|
I'm viewing it in IE7. Haven't tried other browsers.
|
|
|
|
Rank: Member
Joined: 6/10/2004(UTC) Posts: 101
|
:confused: Well, I guess I'm stuck on this one. I appreciate your efforts.
Tom
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
I'm not seeing an issue like that so far. Could you post a screenshot of what you're seeing, Tom? |
|
|
|
|
Rank: Member
Joined: 6/10/2004(UTC) Posts: 101
|
Here is the homepage and then category page with a small space after "Belts": <SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype> Can you tell the difference? File Attachment(s): HomePage.gif (311kb) downloaded 75 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
I see, so you have 'turned off' those sub-categories in the admin, but perhaps they aren't removing the nested UL. I don't think there's a 100% reliable way to take care of that in your stylesheet; I would really count that as a bug. The menu should check to make sure none of the nested structure exists when all sub-categories have been hidden.
Perhaps BV can look into this and add it to the list for SP3, if that is indeed the issue. |
|
|
|
|
Rank: Member
Joined: 6/10/2004(UTC) Posts: 101
|
Well, since I was just told there was an update of the TekGear theme I decided to change themes completely to Painted Paper. Now that I converted everthing over to the new theme, the problem went away.
Thanks, Tom
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Probably due to the sub-category UL having margin and/or padding in TekGear, which is why the issue is visually apparent. |
|
|
|
|
Rank: Member
Joined: 6/10/2004(UTC) Posts: 101
|
Well I did change to Painted Paper theme. Still, the same trouble. O.K., well I think I zeroed all of the margins and padding in the CSS. Here is what I have. What do you think? The /* TK */ section is my changes to the original Painted Paper theme CSS.
/* Sub Category Menu */ /*#subcategorymenu {margin:20px 0;} #subcategorymenu .record {width:170px;margin:0 10px 10px 0;text-align:left;} #subcategorymenu .recordname {font-weight:bold;font-size:110%;text-align:center;} #subcategorymenu .recordname a {font-size:inherit;text-decoration:none;} #subcategorymenu ul {padding:5px;margin:5px 10px;border-top:2px solid #ddd;border-bottom:2px solid #ddd;} #subcategorymenu li {padding: 2px;list-style:none;} #subcategorymenu li a {text-decoration:none;font-size:90%;} #subcategorymenu li a:hover {text-decoration:underline;} */
/* TK */ #subcategorymenu {margin:0;padding:0;} #subcategorymenu .record {width:170px;margin:0;} #subcategorymenu .recordname {font-size:90%;text-align:center;} #subcategorymenu .recordname a {font-size:90%;text-decoration:none;} #subcategorymenu ul {padding:0;margin:0;} #subcategorymenu li {padding:0;list-style:none;} #subcategorymenu li a {text-decoration:none;font-size:90%;} #subcategorymenu li a:hover {text-decoration:underline;}
/* Sub Category Menu 2 */ /* #subcategorymenu2featured {width: 345px; float: left;} #subcategorymenu2featured .featuredImage {display: block;text-align: center; } #subcategorymenu2main {width: 345px; float: left;margin: 0 0 0 20px;} #subcategorymenu2 {margin:20px 0;} #subcategorymenu2 .record {width:170px;margin:0 10px 10px 0;} #subcategorymenu2 .recordname {font-weight:bold;font-size:110%;text-align:center;} #subcategorymenu2 .recordname a {font-size:inherit;text-decoration: none;} #subcategorymenu2 ul {padding:5px;margin:5px 10px;border-top:2px solid #ddd;border-bottom:2px solid #ddd;} #subcategorymenu2 li {padding: 2px;list-style:none;display:none;} #subcategorymenu2 li a {text-decoration:none;font-size:90%;} #subcategorymenu2 li a:hover {text-decoration:underline;} */
/* TK */ #subcategorymenu2featured {width: 345px; float:left;} #subcategorymenu2featured .featuredImage {display: block;text-align:center; } #subcategorymenu2main {width:345px; float:left;margin:0;} #subcategorymenu2 {margin:0;} #subcategorymenu2 .record {width:170px;margin:0;} #subcategorymenu2 .recordname {font-size:90%;text-align:center;} #subcategorymenu2 .recordname a {font-size:90%;text-decoration:none;} #subcategorymenu2 ul {padding:0px;margin:0;} #subcategorymenu2 li {padding:0px;list-style:none;} #subcategorymenu2 li a {text-decoration:none;font-size:90%;} #subcategorymenu2 li a:hover {text-decoration:underline;}
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
It may not be completely a padding/margin issue. Just the presence of the empty nested UL is invalid markup and really needs to be fixed in in the code-behind. If I get a moment, I'll take a look at the code-behind, but not sure if I'll know how to fix it. |
|
|
|
|
Rank: Member
Joined: 6/10/2004(UTC) Posts: 101
|
Cliff, I think I see what you're saying might be going on. Since a category that is being selected has subcategories but are hidden, the code-behind is generating an empty nested UL. Thanks for looking into it.
Tom
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
|
|
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hi Guys, To fix this you will need to edit the view.ascx.vb file located under the "siteRoot\BVModules\ContentBlocks\Category Menu\" folder. Find the "LoadPeersAndChildren()" method, and then look for the following commented sections: ' Load Children There are two sections of this method that load child categories, so make sure that this code is updated twice. You should replace the entire IF block that starts "If neighbors.Children.Count > 0 Then" with the following code: [blue] Code: If neighbors.Children.Count > 0 Then Dim initialized As Boolean = False For Each child As Catalog.Category In neighbors.Children If Not child.Hidden Then If Not initialized Then Me.MenuControl.Controls.Add(New LiteralControl("<ul>")) initialized = True End If AddSingleLink(child) Me.MenuControl.Controls.Add(New LiteralControl("</li>")) End If Next If initialized Then Me.MenuControl.Controls.Add(New LiteralControl("</ul>")) End If End If
[/blue] This should prevent the category menu from outputting an empty <UL> when the child categories are hidden. Thanks, |
Everett Comstock
BV Software |
|
|
|
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.