Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2007
    Posts
    33
    Plugin Contributions
    0

    Default header config help?

    I can't figure this out:

    When you go to my main page (http://www.haberlinsherbals.com/zen) and look at the [really bad] logo.gif it's linked, as is the HOME button. I need to know how to change where these links point to and cannot find it.

    Help, please?


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

    Default Re: header config help?

    In a copy of the tpl_header.php file look for these href's
    Code:
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    
    and
    
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    You can change them to what you want BUT - these provide for simple cart navigation and you should keep that in mind
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: header config help?

    Quote Originally Posted by kobra View Post
    In a copy of the tpl_header.php file look for these href's
    Code:
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    
    and
    
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    You can change them to what you want BUT - these provide for simple cart navigation and you should keep that in mind
    Thank you! I will give that a try.

  4. #4
    Join Date
    Sep 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: header config help?

    Ok, it didn't work.

    Perhaps I'm not linking it correctly, what i'm attempting to do is have those links get back to my base site (http://www.haberlinsherbals.com) which is on the same server, up one directory from where i have configured Zen-Cart to test with.

    Quote Originally Posted by kobra View Post
    In a copy of the tpl_header.php file look for these href's
    Code:
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    
    and
    
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    You can change them to what you want BUT - these provide for simple cart navigation and you should keep that in mind

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: header config help?

    You did not post what you tried???
    Code:
    <li><a href="http://www.haberlinsherbals.com">Some_Descriptor</a></li>
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Sep 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: header config help?

    Quote Originally Posted by kobra View Post
    You did not post what you tried???
    Code:
    <li><a href="http://www.haberlinsherbals.com">Some_Descriptor</a></li>

    I tried this:

    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><a href="http://www.haberlinsherbals.com">Haberlins Herbals</a></li>
    <?php if ($_SESSION['customer_id']) { ?>

    and got Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: header config help?

    Did you have these after it also?
    Code:
    <?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>
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Sep 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: header config help?

    Quote Originally Posted by kobra View Post
    Did you have these after it also?
    Code:
    <?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>
    thanks for the help, here's the full section:

    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><a href="http://www.haberlinsherbals.com">Home</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') {
    ?>

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

    Default Re: header config help?

    Just did this and it parses fine???

    What are you using as an editor?

    Check PM's
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Need help with config
    By GRIM2594 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 24 May 2009, 09:50 AM
  2. config help (maybe)
    By tradari in forum General Questions
    Replies: 10
    Last Post: 10 Dec 2008, 11:23 PM
  3. Help on config
    By maveric in forum General Questions
    Replies: 2
    Last Post: 8 Sep 2008, 12:01 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