Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Links at top of page - always on?

    I haven't made many changes to the default template. I followed the wiki to learn how to change the template a bit and override. I note there is a Home and Login link hardcoded into the template at the top left of my page. when things are in my shopping cart then I get two more links that show, checkout and shopping cart.

    the site it at zencart.bjrtechnologies.com

    My question is how can I make these hardcoded links always show.

    Thanks!

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

    Default Re: Links at top of page - always on?

    These are conditional i.e. checkout only if there is something in the cart...

    You would need to alter the "if" condition in tpl_header.php and I am not proficient enough at php to provide the exact changes required without doing my normal trial and error bit. It might be as easy as commenting the "if" line out to leave what resembles the blue highlighted statement

    Code:
        <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 }?>
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Links at top of page - always on?

    Kobra is correct. Comment out the conditional statements.
    PHP Code:
    <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="<?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>

 

 

Similar Threads

  1. v150 Edit top menu bar to always highlight one of the links
    By coreyalderin in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Aug 2012, 01:01 PM
  2. Removing category links from top of page
    By eddy_r3 in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 7 Oct 2011, 12:37 AM
  3. Removed links from top of page
    By Glock1 in forum General Questions
    Replies: 3
    Last Post: 30 Sep 2011, 03:30 PM
  4. Remove links at top of page
    By duckydoodles.com in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Jan 2008, 02:41 PM
  5. changing nav links at top of page
    By ssbeats in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Jan 2008, 12:18 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