Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    85
    Plugin Contributions
    0

    Default Changes to the header =)

    Greetings,

    Well, I have been learning quite a bit of php but I'm still no pro at a little stuck.

    http://productofasheville.com/zen-cart-v1.3.8a-full-fileset-12112007


    This site will be a template (hopefully) for the rest of my sites.

    Anyways, I have installed the alternative headers 1.1a mod and followed the changes to the code in another post. I also added some more code to put the cart status in the header and modified it to my liking (so far).

    What I would like to do is to put the "My Account" in the top beside "Sign Up". I attempted to remove all the (correct) instances of <li></li> hoping to get them on the same line but that did not seem to work.

    Here is my php code:
    [SCR]

    ?>

    <div id="headerWrapper">
    <!--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>

    <div id="navMain">
    <ul class="forward">
    <?php if ($_SESSION['customer_id']) { ?>
    <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>


    <li>
    <p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><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>
    <p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?>&nbsp;|&nbsp;Sign Up</a></li>

    <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></li></a>
    <?php } } ?>
    [/SCR]

    Like I say I attempted to remove all but the first <li> and the last </li> hoping that would work, but it did not. I'm guessing it may have something to do with the fact that this code is dependent on whether or not a person is logged in?

    If you can get that I have another one directly related to this too
    If I add "one" of one item and "twenty" of another, my cart quantity says I have two items, when in fact I have 21. The price displays correctly but can I change the code to display the total quantity instead of item quantity (I tried, again no luck)?

    [SCR]<li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">

    My Cart:<span class="style1">
    <?php echo sizeof($_SESSION['cart']->get_products()); ?> &nbsp;Total:
    <?php $header_cart = $currencies->format($_SESSION['cart']->show_total());
    echo $header_cart;
    ?>&nbsp; Check Out
    </span>
    <br class="clearBoth" />
    </li>[/SCR


    Please and Thank You!!!

  2. #2
    Join Date
    May 2008
    Posts
    85
    Plugin Contributions
    0

    Default Re: Changes to the header =)

    Not sure why the code didnt post.


    <div id="headerWrapper">
    <!--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>

    <div id="navMain">
    <ul class="forward">
    <?php if ($_SESSION['customer_id']) { ?>
    <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>


    <li>
    <p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><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>
    <p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?>&nbsp;|&nbsp;Sign Up</a></li>

    <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></li></a>
    <?php } } ?>


    How do you guys get those nifty boxes to show up anyways???


    thx again!

  3. #3
    Join Date
    May 2008
    Posts
    85
    Plugin Contributions
    0

    Default Re: Changes to the header =)

    I removed this mod from my site for the time being as I'm not sure what it may take to get the look I'm going for. If anyone knows, it would be appriciated.

 

 

Similar Threads

  1. Flash Header/ Font Header make changes to...
    By SolarTrees in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 12 Jul 2007, 07:59 AM
  2. changes to the HEADER.PHP
    By yellowdaises in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Jun 2007, 07:24 PM
  3. Header changes ...
    By titangen in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 May 2006, 12:23 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