Community Forums

Remove Top Menu Category on Side bar Categories[Solved]

If you require some commercial work and are will to pay then you can post your job requests here.
(No Selling Contributions)

Remove Top Menu Category on Side bar Categories[Solved]

Postby aqibboy2 » Thu Jun 07, 2012 8:34 am

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 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

Postby straightlight » Thu Jun 07, 2012 10:15 am

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.
Regards,
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

Postby aqibboy2 » Thu Jun 07, 2012 10:35 am

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.
aqibboy2
 
Posts: 10
Joined: Sun Jun 03, 2012 12:05 am

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

Postby WebEngage » Thu Jun 07, 2012 10:40 am

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
WebEngage
 
Posts: 16
Joined: Mon Jun 04, 2012 1:18 pm

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

Postby aqibboy2 » Fri Jun 08, 2012 12: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!!!
aqibboy2
 
Posts: 10
Joined: Sun Jun 03, 2012 12:05 am

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

Postby WebEngage » Fri Jun 08, 2012 7:10 am

Sweet as man - pretty decent store you have there ;) 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]

Postby Brite Light LEDs » Mon Oct 15, 2012 11:04 am

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 ?
Image

Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk
User avatar
Brite Light LEDs
 
Posts: 160
Joined: Tue Apr 24, 2012 4:47 pm

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

Postby Brite Light LEDs » Mon Oct 15, 2012 11:18 am

problem was had conflicting sort orders, now sorted ;)
Image

Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk
User avatar
Brite Light LEDs
 
Posts: 160
Joined: Tue Apr 24, 2012 4:47 pm


Return to Commercial Support

Who is online

Users browsing this forum: No registered users and 6 guests

Hosted by Arvixe Web Hosting