Zen Cart Logo
Forums / General Questions / Sub-Categories not showing

Sub-Categories not showing

Locked

Views: 2,537

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
18 Jul 2007, 4:39 AM
#1
cheeky_chino avatar

cheeky_chino

New Zenner

Join Date:
Sep 2004
Location:
Australia
Posts:
17
Plugin Contributions:
0

Sub-Categories not showing

Hi Guys,

I've had a previous install of ZenCart 1.2.6 i think and just installed the latest. Setting up new tables for the new ZenCart.

I've tried copying over what i could from the 1.2.6 database tables to the 1.3.7 database tables but I have a problem where my sub categories arn't showing.

Link: http://rewards2.pacific.net.au

The main categories to the left work, but when you click on them there are no sub categories. I can view the categories and sub categories and products in the admin catalogue section.

Any ideas?

Is there any way i can turn on a debug mode or something?

Thanks
Chino

18 Jul 2007, 4:50 AM
#2
cheeky_chino avatar

cheeky_chino

New Zenner

Join Date:
Sep 2004
Location:
Australia
Posts:
17
Plugin Contributions:
0

Re: Sub-Categories not showing

Also, i can view all my products when i search or go to View All. Looks like the categories are not coming out right.

18 Jul 2007, 4:55 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Sub-Categories not showing

Reload the files:
/includes/templates/template_default/templates/tpl_index_categories.php
/includes/modules/pages/index/main_template_vars.php
/includes/templates/template_default/templates/tpl_modules_category_row.php
/includes/modules/category_row.php

18 Jul 2007, 5:10 AM
#4
cheeky_chino avatar

cheeky_chino

New Zenner

Join Date:
Sep 2004
Location:
Australia
Posts:
17
Plugin Contributions:
0

Re: Sub-Categories not showing

Just reloaded those files and still not working.

I think it would have something to do with the database. But can't find where, or what it is.

18 Jul 2007, 5:17 AM
#5
cheeky_chino avatar

cheeky_chino

New Zenner

Join Date:
Sep 2004
Location:
Australia
Posts:
17
Plugin Contributions:
0

Re: Sub-Categories not showing

Just created a new sub-category through the admin section. Even that new category didnt show.

18 Jul 2007, 5:24 AM
#6
cheeky_chino avatar

cheeky_chino

New Zenner

Join Date:
Sep 2004
Location:
Australia
Posts:
17
Plugin Contributions:
0

Re: Sub-Categories not showing

OK i just commented out the following and now my categories are showing. Not sure if i should leave it like this.

/includes/templates/template_default/templates/tpl_index_categories.php

<?php //if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) { // do nothing //} else { // display subcategories /** * require the code to display the sub-categories-grid, if any exist */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); //} Should i look at another fix or will this be fine?
25 Jul 2007, 4:21 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Sub-Categories not showing

Switch to Classic Template ... does it work now?

Do you have both Products and Categories in your Categories?

Categories hold Products or Categories but never both ...

Depending on how you added your products ... do all products have a master_categories_id in the products table? This can be viewed in phpMyAdmin ...

9 Aug 2007, 1:04 AM
#8
hipctech avatar

hipctech

Totally Zenned

Join Date:
Oct 2004
Location:
Surrey, BC, Canada
Posts:
1,466
Plugin Contributions:
1

Re: Sub-Categories not showing

Hello Linda,

I was wondering how do I add or update the master_categories_id ?
I added my products with Easy Populate and all the master_categories_id are set to 0.
Thanks.

9 Aug 2007, 1:47 AM
#9
hipctech avatar

hipctech

Totally Zenned

Join Date:
Oct 2004
Location:
Surrey, BC, Canada
Posts:
1,466
Plugin Contributions:
1

Re: Sub-Categories not showing

HiPCTech:

Hello Linda,

I was wondering how do I add or update the master_categories_id ?
I added my products with Easy Populate and all the master_categories_id are set to 0.
Thanks.

Sorry Linda,
The Lord answered my prayers led me to this post: Here

Where DrByte tells how to reset the master_categories_id. so it is all solved!

Praise the Lord :smile:

9 Aug 2007, 2:48 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Sub-Categories not showing

The ol' missing the master_categories_id trick eh?! :lamo:

6 Feb 2008, 9:15 PM
#11
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Sub-Categories not showing

I have a website that when clicking on the category link, it does not show the subcategories either.

Website is at https://www.shearadiance.com

So far, I have:
Deleted and reloaded all the following pages
/includes/templates/template_default/templates/tpl_index_categories.php
/includes/modules/pages/index/main_template_vars.php
/includes/templates/template_default/templates/tpl_modules_category_row.php
/includes/modules/category_row.php

I tried commenting out the lines in the post above here

I have reset the master categories id

I have switched to the classic template - still the same problem

I have pulled a wad of hair out of my head :blush:

This is version 1.3.8.a

Can anyone help me resolve this situation? I am sure it is something really simple, because I do not have this problem on other 1.3.8a sites I have built... just cant figure out WHAT that simple solution is.

THANKS in advance for any help!

14 Feb 2008, 2:51 PM
#12
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Sub-Categories not showing

I forgot to mention that this site was upgraded to 1.3.8a - so wondering if this could be a database problem?

14 Feb 2008, 10:53 PM
#13
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Sub-Categories not showing

If anyone else has this problem, hopefully they will find this thread and be able to get some help from it.

I finally figured out (after hours of troubleshooting and rebuilding databases, etc) that the reason the sub-categories did not show up when the category name was clicked was because under Product Listing - the very last item - Show SubCategories on Main Page while navigating - was set to 0. I set it to 1 and it now displays properly.

Hours and hours lost - when all that was needed was to click a button in the admin. :frusty:

Hope this helps someone else!