Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2008
    Posts
    15
    Plugin Contributions
    0

    Default Remove Checkout Link from NavMain?

    Hi,

    Now that I've enabled PayPal I don't want the Checkout link to appear in the top menu because clicking it doesn't give the user the option to use PayPal. I'd rather users go through their shopping chart to checkout.

    How can I configure ZenCart to not display the Checkout link?

    Thanks,
    Steve

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Remove Checkout Link from NavMain?

    What template are you using? Your URL?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Feb 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Remove Checkout Link from NavMain?

    Hi Kim,

    Thanks for the reply. I'm using the classic template with only CSS styling changes. Right now I'm leaving the site in maintenance mode until I'm further along.

    In includes/templates/template_default/common/tpl_header.php it looks like a link containing HEADER_TITLE_CHECKOUT is created as soon as there is at least one entry in the cart.

    I tried defining HEADER_TITLE_CHECKOUT to the empty string but it still leaves too big a "target" for the user to accidentally mouse on next to the Shopping Cart link. So I guess I'll make a copy of tpl_header.php into my template and remove the link entirely.

    Seems like others might want the Checkout link to go to the shopping cart page (index.php?main_page=shopping_cart) instead of to the generic index.php?main_page=checkout_shipping page (which doesn't include Google or PayPal checkout options if you have moneyorder payment option enabled).

    Please let me know if there is a less intrusive way to configure this.
    Thanks,
    Steve

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Remove Checkout Link from NavMain?

    You are on the right track - however, you need to create and use a custom template or the changes you make will be wiped out when you upgrade.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Jan 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Remove Checkout Link from NavMain?

    I ran intd this same problem but I found the fix. You were on the right track I wanted to also get rid of the shopping cart link as well this is what I removed from /includes/templates/template_default/common/tpl_header.php

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

  6. #6
    Join Date
    Jan 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Remove Checkout Link from NavMain?

    Also, remove this line as well if not it will repopulat eit with My account and login. This is getting rid of all header links so it has no reference to pull it from.

    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

 

 

Similar Threads

  1. Removing checkout link from FEC checkout page
    By creamcrackers in forum General Questions
    Replies: 5
    Last Post: 31 Jul 2012, 01:42 AM
  2. navMain active page link in different color
    By shopkiper in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jan 2011, 04:50 PM
  3. NavMain Link Color Different In IE
    By Cris in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Dec 2009, 09:11 PM
  4. Remove 'Home' link from navMain?
    By shadowcat in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Mar 2009, 01:08 AM
  5. Remove the navmain bar from my site
    By Mike_Dean in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 26 Apr 2008, 05:17 AM

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