Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Oct 2007
    Location
    North Carolina
    Posts
    98
    Plugin Contributions
    0

    Default v1.5.7b Not Showing Categories on Main Page

    Categories do no show on main page when the setting in Layout Settings > Categories - Always Show on Main Page is set to "1". This worked in Zen Cart 1.5.7. I have tried with my custom template and the base Zen Cart template and neither one shows the categories on the main page.

    I am no PHP coder but it appears to be an issue with includes > modules > pages > index > header_php.php. When I replaced the 1.5.7b version of this file with the one from 1.5.7 (just to see what would happen), the categories do show on the main page (though the dots separating the rows and columns don't appear).

    Not sure if this is a bug or I am being dumb about how to make this work.

    Test Site:
    https://www.moonrivercardstore.com/test_OPCO/

    Zen Cart 1.5.7b
    PHP 7.4

  2. #2
    Join Date
    Oct 2007
    Location
    North Carolina
    Posts
    98
    Plugin Contributions
    0

    Default Re: v1.5.7b Not Showing Categories on Main Page

    And here's a link to the current working site:
    https://www.baldwinbrassornamentstore.com
    Zen Cart 1.5.7ppatch1
    PHP 7.2

  3. #3
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: v1.5.7b Not Showing Categories on Main Page

    They are working on my desktop Chrome.

  4. #4
    Join Date
    Oct 2007
    Location
    North Carolina
    Posts
    98
    Plugin Contributions
    0

    Default Re: v1.5.7b Not Showing Categories on Main Page

    The original 1.5.7 site (www.BaldwinBrassOrnamentStore.com) is showing the categories on the main page on all browsers.

    The test site with 1.5.7b installed (www.MoonRiverCardStore.com/test_OPCO/) is not showing the categories on the main page in any browser.

  5. #5
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: v1.5.7b Not Showing Categories on Main Page

    Oh! I thought you were referring to the left bar of categories. I don't know how to fix it, but I did F12 both pages and there is quite a difference between the two pages after the:
    <body id="indexHomeBody"> ==$0

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: v1.5.7b Not Showing Categories on Main Page

    Admin->Configuration->Product Listing->Show SubCategories on Main Page while navigating

    Compare that setting between your stores.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Oct 2007
    Location
    North Carolina
    Posts
    98
    Plugin Contributions
    0

    Default Re: v1.5.7b Not Showing Categories on Main Page

    Admin > Configuration > Product Listing > Show SubCategories on Main Page while navigating is set to "1" on both stores.

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: v1.5.7b Not Showing Categories on Main Page

    The whole centerBoxWrapperContent appears to be missing in the newer site. Is it possible one template was cloned before the settings were updated?

  9. #9
    Join Date
    Oct 2007
    Location
    North Carolina
    Posts
    98
    Plugin Contributions
    0

    Default Re: v1.5.7b Not Showing Categories on Main Page

    I did a fresh install of 1.5.7b and a fresh install of the template I am using (lite_grey). I have not messed with the default template. When I switch back and forth between Lite Grey and Classic Contemporary Green, the categories don't show up on the main page. That would indicate to me that something is missing from the core files I installed? Sorry to be a bit dumb about all this.
    Last edited by thegoodlifestore; 14 Dec 2020 at 08:18 PM.

  10. #10
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: v1.5.7b Not Showing Categories on Main Page

    Was there a fix for this?

    I'm having the same issue on new localhost install of ZC 157b using a copy of live store db (db was updated to 157b). No top level categories are displayed on main page. If I set a cat ID under Main Page - Opens with Category to one of the other cat IDs, they will display on main page. If set to 0, they do not.

    If I use the index page header_php.php from ZC 156, top level categories are displayed correctly on the main page.
    Experience is what you get when you don’t get what you want…

 

 
Page 1 of 2 12 LastLast

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