Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Aug 2011
    Location
    New Jersey
    Posts
    15
    Plugin Contributions
    0

    Default Subcategories Not Displaying Under Categories

    version: v1.3.9h
    template: custom
    add-ons: tabbed products pro; wishllist

    For some reason, my subcategories are not showing up on my category pages. Subcategories are showing up in the sidebar, but when you click on the top-level category, you get the category name with no links to any subcategories. However, products are listed on sub-subcategory pages, and the product page shows up just fine. Basically, the site looks like this:

    --> Category Page: nothing

    --> --> Sub Category Page: nothing

    --> --> --> Sub Sub Category Page: list of products

    --> --> --> --> Product Page: product info

    I checked using the classic template, and the problem is still apparent. I replaced the "display grid of available subcategories" code in tpl_index_categories from a clean backup just in case, and it did nothing. I've also tried the opposite of removing subcategories from category pages (replacing clean code where it instructs to remove it),and played around with my admin settings, but I'm getting nowhere. Any ideas? TIA!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Subcategories Not Displaying Under Categories

    Not yet, but seeing it live may help.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Subcategories Not Displaying Under Categories

    You might check Admin - Configuration - Product Listing - Show SubCategories on Main Page while navigating

  4. #4

    Default Re: Subcategories Not Displaying Under Categories

    Got the same problem...
    Working on this site: studteol.dk/zencart

    Anyone with an idea why this is so?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Subcategories Not Displaying Under Categories

    What errors are you seeing in the debug logs in the /cache directory?

    The page is not completing when you go to a Category with subcategories ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6

    Default Re: Subcategories Not Displaying Under Categories

    How will I know which log to look in?
    It doesn't seem to produce a log when just trying to navigate to a subcategory? And the result is just the header and footer, the breadcrumb and an empty main column....

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Subcategories Not Displaying Under Categories

    You should not have any debug logs in the /cache .... so you might start by deleting all of the *.log files then navigating to a Category where you do not see the subcategories then refresh your /cache directory and see what debug logs are generated ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Subcategories Not Displaying Under Categories

    The last HTML output is
    HTML Code:
    <!-- eof breadcrumb -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
      <tr>
        <td class="maincolumn" valign="top">
    	
    
    
    
    
    <!-- bof upload alerts -->
    <!-- eof upload alerts -->
    so there is some kind of problem most likely in /includes/templates/your_template/templates/tpl_index_categories.php, or maybe in the module file that feeds it.

    The latest debug log is the one that will have the current error.

  9. #9

    Default Re: Subcategories Not Displaying Under Categories

    Well this is the message:


    [12-Dec-2011 17:02:39] PHP Parse error: syntax error, unexpected '<' in /home/studteol/public_html/zencart/includes/templates/template_default/templates/tpl_index_categories.php on line 51

    And the code is this:
    PHP Code:
    <?php
    if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') {


    <?
    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);

    ?>
    Can anyone with more insight than me, see the problem?

    Best regards
    Johnny

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Subcategories Not Displaying Under Categories

    PHP Code:
    while (!$show_display_category->EOF) {
      
    // //  echo 'I found ' . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS);

    ?> 
    The file shouldn't cut off like that. Some code has been deleted before the ?>, leaving an unclosed while loop.


    ...Unless there is more of the file that you haven't posted:)
    Last edited by gjh42; 12 Dec 2011 at 07:20 PM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Can I set up subcategories under subcategories?
    By jokkah in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 7 Sep 2014, 08:05 PM
  2. v150 Center Box Not Displaying Subcategories
    By Dianne in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 27 Jul 2013, 02:23 AM
  3. Some subcategories not displaying products
    By mleahy in forum General Questions
    Replies: 7
    Last Post: 5 Jul 2011, 11:38 PM
  4. Categories and subcategories not displaying properly
    By canemasters in forum Customization from the Admin
    Replies: 2
    Last Post: 16 Sep 2008, 10:04 PM
  5. how to prevent home page images from displaying under categories
    By james739 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Dec 2007, 02:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR