Remove Top Menu Category on Side bar Categories[Solved]
8 posts
• Page 1 of 1
Remove Top Menu Category on Side bar Categories[Solved]
Hello Opencart Members,
As title say how i can remove top menu (navigation bar) category on side bar categories?
Thansk in Advanced.
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 12:58 am, edited 1 time in total.
- aqibboy2
- Posts: 10
- Joined: Sun Jun 03, 2012 12:05 am
Re: How to Remove Top Menu Category on Side bar Categories
From your header.tpl file.
Look for:
until the next:
remove / replace the entire block.
Look for:
- Code: Select all
<div id="menu">
until the next:
- Code: Select all
</div>
remove / replace the entire block.
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1911
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
Re: How to Remove Top Menu Category on Side bar Categories
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.
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.
- aqibboy2
- Posts: 10
- Joined: Sun Jun 03, 2012 12:05 am
Re: How to Remove Top Menu Category on Side bar Categories
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
And the line after, add this:
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
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
- WebEngage
- Posts: 16
- Joined: Mon Jun 04, 2012 1:18 pm
Re: How to Remove Top Menu Category on Side bar Categories
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!!!
- aqibboy2
- Posts: 10
- Joined: Sun Jun 03, 2012 12:05 am
Re: Remove Top Menu Category on Side bar Categories[Solved]
Sweet as man - pretty decent store you have there
hahaha, I'm such a funny guy!
hahaha, I'm such a funny guy!- WebEngage
- Posts: 16
- Joined: Mon Jun 04, 2012 1:18 pm
Re: Remove Top Menu Category on Side bar Categories[Solved]
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 ?
-

Brite Light LEDs - Posts: 160
- Joined: Tue Apr 24, 2012 4:47 pm
Re: Remove Top Menu Category on Side bar Categories[Solved]
problem was had conflicting sort orders, now sorted 

-

Brite Light LEDs - Posts: 160
- Joined: Tue Apr 24, 2012 4:47 pm
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests














