Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    92
    Plugin Contributions
    0

    red flag 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

  2. #2
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    92
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,664
    Plugin Contributions
    6

    Default 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
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #4
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    92
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    92
    Plugin Contributions
    0

    Default Re: Sub-Categories not showing

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

  6. #6
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    92
    Plugin Contributions
    0

    Default 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?

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,664
    Plugin Contributions
    6

    Default 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 ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  8. #8
    Join Date
    Oct 2004
    Location
    Surrey, BC, Canada
    Posts
    1,882
    Plugin Contributions
    2

    Default 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. #9
    Join Date
    Oct 2004
    Location
    Surrey, BC, Canada
    Posts
    1,882
    Plugin Contributions
    2

    Default Re: Sub-Categories not showing

    Quote Originally Posted by HiPCTech View Post
    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

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,664
    Plugin Contributions
    6

    Default Re: Sub-Categories not showing

    The ol' missing the master_categories_id trick eh?!
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Help making Template
    By Shiftypow in forum Basic Configuration
    Replies: 8
    Last Post: 4 Jun 2007, 07:20 AM
  2. Creating Custom Layouts for Categories
    By fostergross in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Mar 2007, 10:09 AM

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
  •