Post by dimko » Sat Oct 08, 2011 4:13 am

Couldn't find it thru the forums. How can the top horizontal menu be hidden, when side menu is visible? Anyone figure it out? Will try to play with the code, but if someone already did it, please share the wisdom :)

Thanks in advance.

P.S. Sorry for posting in wrong section of the forum, will keep in mind next time.

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am

Post by dimko » Sat Oct 08, 2011 6:32 am

In .../catalog/view/theme/default/template/common/header.tpl this part:

<?php if ($categories) { ?>

should be something like this:

<?php if ($categories) && SOMETHING HERE THAT WILL CHECK IF THE CATEGORY MODUL IS VISIBLE OR NOT { ?>

but no luck far by now. If anyone has an idea, it's worth to try.

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am

Post by KaeSea » Mon Oct 17, 2011 5:45 am

There is a 'tick box' when you create a category, that asked if you want the category to appear in the top menu bar, if you uncheck all of the categories, so that none appear in the top menu bar ,then it disappears altogether and you're left with your sidebar menu.

Newbie

Posts

Joined
Sun Aug 28, 2011 12:35 am

Post by dimko » Mon Oct 17, 2011 8:56 pm

Yeap, I know that, but I need the top menu to be shown on the front page, when you enter the site, and when you click on some category, then the side menu is diplayed. So I want when the side menu is displayed, the top menu to be gone.

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am

Post by KaeSea » Tue Oct 18, 2011 5:19 am

Not sure if that is possible, since the top menu bar will always be there if you tick that little box for the parent categories. :\

Newbie

Posts

Joined
Sun Aug 28, 2011 12:35 am

Post by SXGuy » Tue Oct 18, 2011 5:54 am

the menu bar needs to be created as its own module extension, that way you could select the pages its to be displayed on.

any developer should find this easy to create a mod for.

List it as a feature request.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by Heks » Tue Oct 18, 2011 9:00 am


New member

Posts

Joined
Wed Feb 16, 2011 9:10 am

Post by dimko » Tue Oct 18, 2011 9:21 am

It needs only one IF check up, so if the side menu is visible, the top menu should be hidden, and that's it. But I don't know how to write the code for checking up :)

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am
Who is online

Users browsing this forum: No registered users and 7 guests