Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2011
    Location
    USA
    Posts
    76
    Plugin Contributions
    0

    help question Header Navigation Link Disappears After Log in

    I added an "about us" link to my top header navigation through editing my tpl_header.php file. My "about us" link now looks and works properly when viewing the site as a guest, however this "about us" link disappears when i log in to my site as a customer. i am assuming i have placed the link in my file incorrectly. can someone point me in the right direction please?


    PHP Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
       
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <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>
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
    <li><a href="http://www.moebow.com/about-us-ezp-3.html">About Us</a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
        
    <?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 }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>

    <!--eof-navigation display-->
    Owner / Admin
    http://www.moebow.com

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Header Navigation Link Disappears After Log in

    You need to do a little bit of studying on PHP.
    PHP Code:
    <?php if ($_SESSION['customer_id']) { ?>
    IF a customer is logged in, then...
    PHP Code:
        <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>
    <?php }
    ... otherwise, do this...
    PHP Code:
    else {
            if (STORE_STATUS == '0') {
    ?>
    <li><a href="http://www.moebow.com/about-us-ezp-3.html">About Us</a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
        
    <?php } } ?>
    Now... where do you think the link you have built OUGHT to go...
    20 years a Zencart User

  3. #3
    Join Date
    Dec 2011
    Location
    USA
    Posts
    76
    Plugin Contributions
    0

    Default Re: Header Navigation Link Disappears After Log in

    yes i do, i have been learning as i go and i have learned a great deal already. since i do this only in my spare time it is taking me a bit of time though. thanks for your assistance. it works as it should now.
    Last edited by bluelightnin6; 15 Jan 2012 at 08:11 PM.
    Owner / Admin
    http://www.moebow.com

 

 

Similar Threads

  1. sidebox and footer disappears after log in
    By btman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Apr 2011, 03:02 PM
  2. Broken image link in IE after customer log in
    By christinefred in forum General Questions
    Replies: 4
    Last Post: 12 Aug 2009, 10:36 PM
  3. Make link available after log in.
    By Graphicman in forum General Questions
    Replies: 8
    Last Post: 4 Aug 2008, 06:45 PM
  4. Question re: Home and Log In Link above the header
    By hipchicagomom in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jan 2008, 06:01 PM
  5. Adding an external link to the Header navigation
    By plowe1 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 May 2006, 04:11 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