Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Remove 'Cart' and 'Checkout' from top nav bar

    How to disable 'Shopping Cart' and 'Checkout' links from showing up on the top navigation header everytime after I add something in my cart?

    I want the top nav with Home and Login to stay as they were whenever I add something to my cart.

    Anyone?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    Remove/comment them out in your copy of tpl_header.php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    Do you mean by deleting this code?

    PHP Code:
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a></li>
    <?php }?>

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    I would comment it out using this at the head of what you want to not parse and then the latter at the end

    /*

    */
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Aug 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    Quote Originally Posted by kobra View Post
    I would comment it out using this at the head of what you want to not parse and then the latter at the end

    /*

    */
    Hello, I am trying to comment out the header, "Home Login/Register My Account" etc links(I have the CSS header installed so I have no need for them http://dropyourdrawers.brinkster.net/shop/) but I am not having any luck, I must not be putting them in the right place because the /* and */ keep showing up on my page. :

    Can you please show me where to put them in the code? Also, I'm trying to comment out the "Home" link from the footer, but am not seeing this in the tpl_footer.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    peeptoe,
    Find these 2 lines and Add the red items

    Code:
    /* <!--bof-navigation display-->
    
    <!--eof-navigation display--> */
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Aug 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    Quote Originally Posted by kobra View Post
    peeptoe,
    Find these 2 lines and Add the red items

    Code:
    /* <!--bof-navigation display-->
    
    <!--eof-navigation display--> */
    Hello kobra,

    Thanks for the fast reply! I added this but its still just adding the /* and */ to the page itself.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    peeptoe,

    What are you editing files with?

    What is the link to your cart?
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Aug 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    http://dropyourdrawers.net/shop/

    and I edit with notepad++

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Remove 'Cart' and 'Checkout' from top nav bar

    Just remove/delete these lines in your copy at templates/dyd/common
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. HELP? Remove nav bar on TOP of page....
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Sep 2010, 10:16 PM
  2. Logo and nav bar on top of each other
    By bedtime21 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Nov 2009, 08:04 PM
  3. Replies: 1
    Last Post: 10 Jun 2009, 10:16 AM
  4. top nav bar different between ie and ff
    By scottgallagher in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 May 2009, 04:44 PM
  5. Remove 'Logout' and 'My Account' link from top nav
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jun 2008, 03:02 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