Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Removing breadcrumbs from main cat pages

    Okay, I feel lame for not being able to figure this out on my own. I've used clydejones' technique for removing the breadcrumbs from the main page. I'd like to also remove it when in a top category. But, it should display when in one of the subcategories and on the product_info page.

    I know I just need to alter the conditional statement, but can't get something to work right. The top categories have a parent_id of 0, but i can't seem to get something like parent_id>0 to work in the conditional.

    Now that I think about it, the top cat links lead to the tpl_index_categories page, the subcats lead to the tpl_product_listing page. Not sure if that helps, but I'm confused.

    Here's the code to remove it from the main page:
    Code:
    <!-- REMOVING Breadcrumbs on main page-->
    <!-- bof  breadcrumb -->
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' && ($current_page!='index' || (int)$cPath>0 )) { ?>
        <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php } ?>
    <!-- eof breadcrumb -->
    Currently using ZEN CART v. 1.3.6

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Removing breadcrumbs from main cat pages

    You're in a top-level category, then this will be true:
    Code:
    $cPath == $current_category_id
    .

    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
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: Removing breadcrumbs from main cat pages

    Thank you Dr. Byte!
    Currently using ZEN CART v. 1.3.6

 

 

Similar Threads

  1. Removing breadcrumbs from certain pages...
    By Alex Clarke in forum General Questions
    Replies: 11
    Last Post: 5 Oct 2010, 11:06 AM
  2. Help Removing Breadcrumbs from Login and Checkout Pages
    By limelites in forum General Questions
    Replies: 3
    Last Post: 29 May 2009, 06:17 PM
  3. Removing Images From Product Pages without removing them from Category Pages
    By googlepasta in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 5 Jan 2008, 04:06 PM
  4. Master Cat's on main page, ONLY sub cat's on specific cat pages
    By wtashby in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 25 Jun 2006, 07:24 PM

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