Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Is there a way to show the sub cats that are in the left menu on the main page?

Is there a way to show the sub cats that are in the left menu on the main page?

Locked
This thread is locked. New replies are disabled.
20 Apr 2009, 9:41 AM
#1
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #1 by sushigal

Hi I've asked this question before but have had no joy, Is there a way to show the sub cats that are in the left menu on the main page?

As you can see on the home page of my site; http://www.thegreatgiftshop.co.uk/zencart/
In the menu on the left there's currently one main cat with sub cats 'jewellery' (there will be more in the futre)

But I don't want users to have to click on the 'jewellery' main cat link in order for its sub cats to appear in red underneath, but for its sub cats to already be displayed there on the main page.

Any Ideas anyone? :wacko:

20 Apr 2009, 2:13 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,195
Plugin Contributions:
0

Post #2 by haredo

Su,
There are mods in the link on the top of this page called Free Software Add Ons

  1. Search for Categories

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

20 Apr 2009, 3:51 PM
#3
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Post #3 by coolcarpartsonline

There is a mod by Numinix called Center Box Categories. Once you install that mod you can select the categories you want to display in the main page by inserting the category number. This mod is controlled from the admin area and installation is straight forward. I am using it on all my sites.

20 Apr 2009, 3:59 PM
#4
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #4 by sushigal

Great, thanks very much. I've downloaded the correct addon for my desired effect as a zipped file. I've unzipped it but what do I now do with the folders and files?

Thanks

20 Apr 2009, 10:27 PM
#5
dchrastil avatar

dchrastil

New Zenner

Join Date:
Sep 2007
Location:
Colorado, USA
Posts:
68
Plugin Contributions:
0

Post #5 by dchrastil

Hi Sushigal,

Each addon has an its own Installation documentation, usually in the form of a file called INSTALL.txt or README.txt.

If you are talking specifically about Numinix, then the file is called, "documentation.html". Open this file and there is a section to explain to you how to install this add-on.

  • Danny
21 Apr 2009, 8:17 AM
#6
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #6 by sushigal

Hi thanks for your reply however, all that the read_me.txt says is; 'Update: if you don't want this sidebox to show on the home page - use the file named category_list_box.php_no_index_page - just change the name to category_list_box.php' which doesn't tell me what to do at all. Any help will be much appreciated.

Thanks,

Sushigal :smile:

21 Apr 2009, 8:24 AM
#7
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #7 by sushigal

P.s I'm using version 1.3.8a and the addon says:

This old mod has the subcategories appear underneath the category no matter what page you are on. Cleaned up and 1.3.7 ready. Also included is a extra file in case you don't want this sidebox appearing on the home page.


This old mod has the subcategories appear underneath the category no matter what page you are on. Cleaned up and 1.3.7 ready. Also included is a extra file in case you don't want this sidebox appearing on the home page.
Author: Updated by D Lunsford
Version: 1
Zen Cart™ Version: v1.3.7
Update added on Aug 30 2007

So will it not work as its for an older version of zen?

21 Apr 2009, 4:01 PM
#8
dchrastil avatar

dchrastil

New Zenner

Join Date:
Sep 2007
Location:
Colorado, USA
Posts:
68
Plugin Contributions:
0

Post #8 by dchrastil

Hi Sushigal,

Your right, I downloaded the "Category Listing Box" Add-on and there aren't any installation instructions.

To install this Add-on, you just need to upload the files to the /includes/ folder on your site. There are a few folders called YOUR_TEMPLATE where you need to replace "YOUR_TEMPLATE" with the folder name of your template.

  • Note that whenever you install a module, you want to make sure that you aren't over-writing any of your custom changes to your store.

Once you have upload these files, the Add-on will be installed and you can turn it on from Admin->Layout Boxes Controller.

  • Danny
21 Apr 2009, 4:14 PM
#9
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #9 by sushigal

Hi, thanks. Have done the first part but can you be more specific with the location of layout boxes controller in the admid?

Thank you. :smile:

21 Apr 2009, 4:22 PM
#10
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #10 by sushigal

its ok, I found it, it was admin>tools>layout boxes controller but I can't see one for the module I just uploaded. I'm looking for category_list_box.php but its not there.

Was I right in doing the following:

I downloaded the file, unzipped it and a folder called 'category_list_box1' popped up containing a folder called 'category_list_box' I put this folder into zencart/includes and then renamed any folders that were called YOUR_TEMPLATE_NAME to 'classic' because that's the template im using (I think)

Of anyone can help, I will be most greatful!

22 Apr 2009, 8:24 AM
#12
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #12 by sushigal

Do I need to dowload them before the one I downloaded works then? Can someone please look at my reply before this one on page 1 and tell if what I've done was correct and try and help me to get it working?

Thanks

22 Apr 2009, 2:34 PM
#13
dchrastil avatar

dchrastil

New Zenner

Join Date:
Sep 2007
Location:
Colorado, USA
Posts:
68
Plugin Contributions:
0

Post #13 by dchrastil

Hi Sushigal,

No you dont need Numinux to install this add-on. Its just an alternative.

As for your problem. I looked at the file structure of the add on and found a mistake:

/includes/templates/sideboxes/YOUR_TEMPLATE/tpl_category_list_box.php

should really be:

/includes/templates/YOUR_TEMPLATE/sideboxes/tpl_category_list_box.php

Try fixing that and let us know if it helps.

  • Danny
22 Apr 2009, 3:43 PM
#14
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #14 by sushigal

Ah, I did originally try and put it in there however, the template I'm using is classic and there was no folder called sidebox in

/includes/templates/classic

so do I need to put a folder called sidebox in here?

Thanks

22 Apr 2009, 3:52 PM
#15
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #15 by sushigal

Ok, I went ahead and did that anyway and the mod now appears in my admin, I've made sure it's on and I look on my site, it does what I wanted it to apart from it also displays the products underneath the cateogories which I really don't want. I only want main cats and their sub cats, not products aswell as then it looks like the products are categories as they are listed like categories, this will not do! :wacko:

22 Apr 2009, 3:56 PM
#16
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #16 by sushigal

http://www.thegreatgiftshop.co.uk/zencart/ heres my site so you can see what I mean.

I did also find this mod: 'Expanded Category List' in the free add ons section of this site but this too displays the products underneath the categories, which is stated by the author. They also mention:

'P.S.: I will be uploading another sidebox which includes only categories and subcategories in expanded form (no products) for user convenience'

But I can't see this sidebox anywhere?

22 Apr 2009, 4:48 PM
#17
dchrastil avatar

dchrastil

New Zenner

Join Date:
Sep 2007
Location:
Colorado, USA
Posts:
68
Plugin Contributions:
0

Post #17 by dchrastil

I'm glad you got it working Sushigal :)

Looks like both add-ons are going to display products. It will need some customization to remove the product links.

I haven't installed this module on my own site, but by looking at the code you can try commenting out the following line and see if it removes the products from the sidebox:

/includes/classes/category_listing.php LINE 81

// $this->build_products($category_id, $category_link,$level);	
  • Danny
23 Apr 2009, 9:04 AM
#18
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #18 by sushigal

Thanks Dchrastil,

I'll give that a go and see if it works. If not I know someone who will be able to figure it out for me eventually. It would just be nice to not have to wait and do it myself! I think I need to learn a bit more first though!

I'll post what was done on here if I figure it out in the mean time.

Thanks!

Sushigal

23 Apr 2009, 9:12 AM
#19
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #19 by sushigal

You star! That works! Thanks so much :clap:

23 Apr 2009, 12:58 PM
#20
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Post #20 by coolcarpartsonline

I have told you how to do it the right way using Numinix, you can see it in action on any of my sites in the signature. The mod you are using is old and hasn't been updated in years.
I guess whatever works for you.