Forums / Templates, Stylesheets, Page Layout / How to get subcategory links to show up below category heading?

How to get subcategory links to show up below category heading?

Locked

Views: 5,428

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
10 Jan 2010, 9:24 AM
#1
tinstew avatar

tinstew

New Zenner

Join Date:
Mar 2009
Location:
Vancouver, BC
Posts:
44
Plugin Contributions:
0

How to get subcategory links to show up below category heading?

When I click on a category on the left side menu, the subcategories show up under it, but I also want the subcategory links to be displayed in the middle of the screen, right below the category header, so that you dont just have a blank screen staring back at you.

Here is an example of what I want:

http://www.thecataloguestop.com/index.php?main_page=index&cPath=55

My website with the issue:

www<dot>homeandgiftavenue<dot>com

Thanks in advance!

10 Jan 2010, 2:53 PM
#2
aunrea avatar

aunrea

New Zenner

Join Date:
Apr 2007
Posts:
35
Plugin Contributions:
0

Re: How to get subcategory links to show up below category heading?

In the admin go to Configuration -> Layout Settings and change "Categories - Always Open to Show SubCategories" to on. Then use the stylesheet to make it look the way you want.

10 Jan 2010, 3:28 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to get subcategory links to show up below category heading?

That affects the categories sidebox.

For the center column, the setting is Comfiguration > Product Listing > Show SubCategories on Main Page while navigating.

10 Jan 2010, 3:30 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to get subcategory links to show up below category heading?

I think what you'ere looking for is the bottom option in Admin - Configuration - Product Listing

(Two minutes late - again.)

11 Jan 2010, 12:13 AM
#5
tinstew avatar

tinstew

New Zenner

Join Date:
Mar 2009
Location:
Vancouver, BC
Posts:
44
Plugin Contributions:
0

Re: How to get subcategory links to show up below category heading?

I actually have both options "on" and it still isnt showing.

Any other suggestions guys??

11 Jan 2010, 1:50 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to get subcategory links to show up below category heading?

hsyong strikes again!
Your template designer has permanently removed the ability to show subcategories here:

<!-- BOF: Display grid of available sub-categories, if any --> <!-- hsyong remove categories thumbnails --> <!-- EOF: Display grid of available sub-categories -->

Search the forum on the red text to find the thread with the fix.

And write to the template supplier and complain about this disabling of a standard function. They could have gotten the same effect by including a SQL patch to make an admin setting for Configuration > Product Listing > Show SubCategories on Main Page while navigating, and left you ultimate control over it.

11 Jan 2010, 4:47 AM
#7
tinstew avatar

tinstew

New Zenner

Join Date:
Mar 2009
Location:
Vancouver, BC
Posts:
44
Plugin Contributions:
0

Re: How to get subcategory links to show up below category heading?

IT WORKS!!!

I added the following:

<!-- BOF: Display grid of available sub-categories, if any --> <?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'); } ?> <!-- EOF: Display grid of available sub-categories -->

Your right, this could have easily been accomplished by writing a sql patch....I dont even know why it was disabled! I think that the subcategories showing in the category header looks fab!

Thanks again to the zen crew for always coming up with prompt answers :clap:

12 Feb 2010, 12:47 PM
#8
lausianne avatar

lausianne

New Zenner

Join Date:
Jan 2010
Location:
Switzerland
Posts:
20
Plugin Contributions:
0

Re: How to get subcategory links to show up below category heading?

I've got the same problem, that the subcategories don't show when I select one of the main categories. Everything is set in Product Listing, the lines in "tpl_index_categories.php" are there, too.

But "tpl_index_categories.php" is never called within a category, only in the main page (where, accordingly, the main categories are displayed)!

Any idea?

Thank you!

Cheers, Ralf.

12 Feb 2010, 7:02 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to get subcategory links to show up below category heading?

For starters, let's see your site so we can tell if it is one of the known issues.

What do you have for admin > Configuration > Product Listing >
Show SubCategories on Main Page while navigating

12 Feb 2010, 8:07 PM
#10
lausianne avatar

lausianne

New Zenner

Join Date:
Jan 2010
Location:
Switzerland
Posts:
20
Plugin Contributions:
0

Re: How to get subcategory links to show up below category heading?

Hi Glenn,

thanks for dropping in.

And you helped me solve it, thank you!
While writing down the details here, I got more ideas, did more testing and found the problem.

All the settings were right. I had at some point read (in the Sarkar book) that there cannot be subcategories and products in one category. This is not entirely true, because that's what I had. And I saw no reason (still don't see one) why not. Now I found that normally it is not possible to enter both products AND categories within a category from the backend.
BUT I did not enter the stuff manually, my client uploaded it from his ERP system. And his ERP had no problem doing the impossible ...

Now I moved the products elsewhere, so only subcategories remain. Voilà.

Thanks again!

Cheers,
Ralf.

12 Feb 2010, 8:37 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to get subcategory links to show up below category heading?

The system does not have safeguards to prevent products and subcats from being moved in together, but it will not be a happy marriage:)

As you found, both cannot be displayed together in standard template pages; and having them mixed up in the structure can cause problems with various kinds of searches and pricing.