Zen Cart Logo
Forums / Basic Configuration / Top-Category Not Opening sub-categories

Top-Category Not Opening sub-categories

Locked

Views: 1,130

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
16 Sep 2008, 6:59 PM
#1
gg01 avatar

gg01

New Zenner

Join Date:
Jul 2008
Location:
Ontario, Canada
Posts:
85
Plugin Contributions:
0

Top-Category Not Opening sub-categories

All my top-categories are working great with the exception of one. It is supposed to open up 3 subcategories. When you click on it doesn't go anywhere.

Any suggestions?

Gir lga rnish .com

It's the Little Girl Garnish link that's not working. (There is supposed to be 3 categories under here Earrings, Necklaces, etc. for kids).

Any help would be greatly appreciated!

:dontgetit

16 Sep 2008, 7:01 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Top-Category Not Opening sub-categories

And the Little Girl Garnish link is on what domain? :cool:

16 Sep 2008, 7:47 PM
#3
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: Top-Category Not Opening sub-categories

just a thought.. go to your admin

configuration -> layout settings -> Categories - Always Show on Main Page = 1

16 Sep 2008, 7:58 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Top-Category Not Opening sub-categories

Actually, now that I read your post and discover you do have your domain there ... :blink:

As suggested, the Always Show needs to be enabled and the Category to open to needs to be set to 0 for the Top ...

However, it looks like one of your files is not working for the category_row.php ...

When I try to force the top to run, it cannot ...

Switch to the Classic template, does it work now?

16 Sep 2008, 10:25 PM
#5
gg01 avatar

gg01

New Zenner

Join Date:
Jul 2008
Location:
Ontario, Canada
Posts:
85
Plugin Contributions:
0

Re: Top-Category Not Opening sub-categories

Wow, thanks for the speedy responses. No, it does not work when I switch to the classic template...

I tried that Steve, it doesn't work.

:no:

17 Sep 2008, 1:16 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Top-Category Not Opening sub-categories

Do you know if you have changed the file:
/includes/modules/category_row.php

Or, if you have one in your templates and overrides:
/includes/modules/your_template_dir/category_row.php

Or, have you made any changes to:
/includes/templates/template_default/templates/tpl_index_categories.php

Or your template and override:
/includes/templates/your_template_dir/templates/tpl_index_categories.php

Also check the setting in the Configuration ... Product Listing ...

Show SubCategories on Main Page while navigating
Show Sub-Categories on Main Page while navigating through Categories

0= off
1= on

See if that is set to 0 ... should be 1 to show the subcategories ...

17 Sep 2008, 1:36 AM
#7
gg01 avatar

gg01

New Zenner

Join Date:
Jul 2008
Location:
Ontario, Canada
Posts:
85
Plugin Contributions:
0

Re: Top-Category Not Opening sub-categories

This is in my custom folder under tpl_index_categories. It's last date modified was when I installed zc. I do not recall making any changes to this file... does anything stand out? I truly appreciate your patience and help with this. (config, prod. list is set to 1.)

<div class="centerColumn" id="indexCategories"> <?php if ($show_welcome == true) { ?> <h1 id="indexCategoriesHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?> <!-- deprecated - to use - uncomment <?php if (TEXT_MAIN) { ?> <div id="" class="content"><?php echo TEXT_MAIN; ?></div> <?php } ?>--> <!-- deprecated - to use - uncomment <?php if (TEXT_INFORMATION) { ?> <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div> <?php } ?>--> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <div id="indexCategoriesMainContent" class="content"><?php

/**

  • require the html_define for the index/categories page

*/

include($define_page);

?></div>

<?php } ?> <?php } else { ?> <h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1> <?php } ?> <?php if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') { // categories_image if ($categories_image = zen_get_categories_image($current_category_id)) { ?> <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div> <?php } } // categories_image ?> <?php // categories_description if ($current_categories_description != '') { ?> <div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div> <?php } // categories_description ?> <!-- 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 --> <?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_CATEGORY); while (!$show_display_category->EOF) { // // echo 'I found ' . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS); ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_FEATURED_PRODUCTS') { ?> <?php /** * display the Featured Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_SPECIALS_PRODUCTS') { ?> <?php /** * display the Special Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_NEW_PRODUCTS') { ?> <?php /** * display the New Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_UPCOMING') { ?> <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?> <?php $show_display_category->MoveNext(); } // !EOF ?> </div>
17 Sep 2008, 3:00 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Top-Category Not Opening sub-categories

Just the line that calls the categories_row.php and has been commented out to not run regardless of the setting in the Admin ... :eek:

//require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');

Those 2 slashes make that line a comment so that it never runs ...

17 Sep 2008, 4:00 PM
#9
gg01 avatar

gg01

New Zenner

Join Date:
Jul 2008
Location:
Ontario, Canada
Posts:
85
Plugin Contributions:
0

Re: Top-Category Not Opening sub-categories

Thank you thank you thank you!!!!!!!!!!!!! :bigups:

17 Sep 2008, 5:13 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Top-Category Not Opening sub-categories

You are most welcome ... glad that worked for you ... :smile: