Post by aqibboy2 » Thu Jun 07, 2012 4:34 pm

Hello Opencart Members,

As title say how i can remove top menu (navigation bar) category on side bar categories?

Thansk in Advanced.
Last edited by aqibboy2 on Fri Jun 08, 2012 8:58 am, edited 1 time in total.

Newbie

Posts

Joined
Sun Jun 03, 2012 8:05 am

Post by straightlight » Thu Jun 07, 2012 6:15 pm

From your header.tpl file.

Look for:

Code: Select all

<div id="menu">
until the next:

Code: Select all

</div>
remove / replace the entire block.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by aqibboy2 » Thu Jun 07, 2012 6:35 pm

I guess you did not understand.I dont wanna show menu category on sidebar category.

My store :http://www.decentstore.com/

There is only one category name as home on menu bar,now i dont wanna show this home category on sidebar category.

Newbie

Posts

Joined
Sun Jun 03, 2012 8:05 am

Post by WebEngage » Thu Jun 07, 2012 6:40 pm

I think you missed the question. The OP wants to know how to remove categories in the top-menu from displaying in the Category Sidebox.

This would be relatively easy:

Find the following (line 33 in 1.5.2.1) in catalog/controller/module/category.php

Code: Select all

foreach ($categories as $category) {
And the line after, add this:

Code: Select all

if ($category['top']) break;
It pretty much tells the controller to skip over any categories that are 'top' categories. Should be fine just to run like this, and would be simple to make as a vQmod.

Regards

Newbie

Posts

Joined
Mon Jun 04, 2012 9:18 pm

Post by aqibboy2 » Fri Jun 08, 2012 8:58 am

WebEngage wrote:I think you missed the question. The OP wants to know how to remove categories in the top-menu from displaying in the Category Sidebox.

This would be relatively easy:

Find the following (line 33 in 1.5.2.1) in catalog/controller/module/category.php

Code: Select all

foreach ($categories as $category) {
And the line after, add this:

Code: Select all

if ($category['top']) break;
It pretty much tells the controller to skip over any categories that are 'top' categories. Should be fine just to run like this, and would be simple to make as a vQmod.

Regards
Thanks Working!!!

Newbie

Posts

Joined
Sun Jun 03, 2012 8:05 am

Post by WebEngage » Fri Jun 08, 2012 3:10 pm

Sweet as man - pretty decent store you have there ;) hahaha, I'm such a funny guy!

Newbie

Posts

Joined
Mon Jun 04, 2012 9:18 pm

Post by Brite Light LEDs » Mon Oct 15, 2012 7:04 pm

just used this, but when u enter a sort order, to tidy up categories module left hand side, it removes them for some reason , so have to have a untidy side category ?

Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 25, 2012 12:47 am

Post by Brite Light LEDs » Mon Oct 15, 2012 7:18 pm

problem was had conflicting sort orders, now sorted ;)

Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 25, 2012 12:47 am
Who is online

Users browsing this forum: Amazon [Bot], paulfeakins, Semrush [Bot] and 10 guests