Page 1 of 1

Remove Top Menu Category on Side bar Categories[Solved]

Posted: Thu Jun 07, 2012 4:34 pm
by aqibboy2
Hello Opencart Members,

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

Thansk in Advanced.

Re: How to Remove Top Menu Category on Side bar Categories

Posted: Thu Jun 07, 2012 6:15 pm
by straightlight
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.

Re: How to Remove Top Menu Category on Side bar Categories

Posted: Thu Jun 07, 2012 6:35 pm
by aqibboy2
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.

Re: How to Remove Top Menu Category on Side bar Categories

Posted: Thu Jun 07, 2012 6:40 pm
by WebEngage
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

Re: How to Remove Top Menu Category on Side bar Categories

Posted: Fri Jun 08, 2012 8:58 am
by aqibboy2
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!!!

Re: Remove Top Menu Category on Side bar Categories[Solved]

Posted: Fri Jun 08, 2012 3:10 pm
by WebEngage
Sweet as man - pretty decent store you have there ;) hahaha, I'm such a funny guy!

Re: Remove Top Menu Category on Side bar Categories[Solved]

Posted: Mon Oct 15, 2012 7:04 pm
by Brite Light LEDs
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 ?

Re: Remove Top Menu Category on Side bar Categories[Solved]

Posted: Mon Oct 15, 2012 7:18 pm
by Brite Light LEDs
problem was had conflicting sort orders, now sorted ;)