Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2011
    Location
    West Yorkshire - England
    Posts
    38
    Plugin Contributions
    1

    Default Option to show Category 0 in the breadcrumb nav bar?

    Hi all.

    I have recently tried to redesign and clean up my site from showing all the categories on my main page, and moving the all categories thumbnails to a seperate page, which I did by providing a link to category 0 to show all categories.

    http://test.italianhampers.co.uk/ind...=index&cPath=0

    Now when I go into a category and item, the breadcrumb navigation bar shows something like

    Home :: Chocolate :: Chocaviar (85g)

    I want it to include the zero category so users can find their way back more easily...

    Home :: Categories :: Chocolate :: Chocaviar (85g)

    I cant find an option to do this....does anyone else know?

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

    Default Re: Option to show Category 0 in the breadcrumb nav bar?

    /includes/init_includes/init_add_crumbs.php (save your changed file into the "overrides" subfolder, instead of editing this file directly).
    Line 15 has the following; add the next line below it, as shown:
    Code:
    $breadcrumb->add(HEADER_TITLE_CATALOG, zen_href_link(FILENAME_DEFAULT));
    if (in_array($current_page_base, array(FILENAME_PRODUCT_INFO)) || sizeof($cPath_array) > 0) $breadcrumb->add(BOX_HEADING_CATEGORIES, zen_href_link(FILENAME_DEFAULT, 'cPath=0'));
    .

    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.

  3. #3
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Option to show Category 0 in the breadcrumb nav bar?

    If you go to includes/classes/breadcrumbs.php you can change the 'home' to be any url you like. (find the switch on line 52)

    What I would then do it change the word 'home' to 'Categories' in your language file...

    and then go to templates/tpl_main_page.php and find this section..


    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>

    ..and change it to

    <div id="navBreadCrumb"><a href="index.php">Home ::</a><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>

  4. #4
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Option to show Category 0 in the breadcrumb nav bar?

    Edit : Ah didnt know you could do that as DrByte said..

  5. #5
    Join Date
    Oct 2011
    Location
    West Yorkshire - England
    Posts
    38
    Plugin Contributions
    1

    Default Re: Option to show Category 0 in the breadcrumb nav bar?

    I used Dr Byte's suggestion, once again thankyou for both taking time to consider my problem, the community support for Zen is better than I have experienced from pro software support I have used over the years.

 

 

Similar Threads

  1. Nav bar - How can i delete a heading in my Nav bar (v1.5.0)
    By Pretty dumb in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Oct 2012, 02:07 PM
  2. Nav Bar/Breadcrumb Links to Home 403 Error
    By weecb in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 15 Jul 2009, 01:50 PM
  3. I've lost the sub-category nav bar on all but the home page.
    By Earl Parker II in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Dec 2007, 09:48 PM
  4. show link to new page in lower nav bar
    By studeo in forum General Questions
    Replies: 3
    Last Post: 23 Aug 2007, 08:32 PM
  5. What defines the color of the | in the nav bar?
    By Danielle in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 26 Aug 2006, 11:33 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