Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    24
    Plugin Contributions
    0

    Default Zen Cart MenuBar Customization

    Hello everybody I been using Zen Cart for about 3 or 4 weeks now and im doing a web site so far is good the link is here

    http://protectedpro.com/gomgi/

    but i was wondering how to do the menu like this link

    osc3.template-help.com/free_zen_cart_template/

    is the one that has Home Page, Specials, New Products, All Products, Reviews, Contact Us, FAQ.

    i have been researching but havent found anything and is getting me frustrated that i dont find the way to do it if anybody could help and give me some info i would apreciate it

    Thank You
    Last edited by Kim; 9 Oct 2008 at 05:04 AM.

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Zen Cart Menu Customization

    Quote Originally Posted by dragon03kf View Post
    Hello everybody I been using Zen Cart for about 3 or 4 weeks now and im doing a web site so far is good the link is here

    http://protectedpro.com/gomgi/

    but i was wondering how to do the menu like this link

    osc3.template-help.com/free_zen_cart_template/

    is the one that has Home Page, Specials, New Products, All Products, Reviews, Contact Us, FAQ.

    i have been researching but havent found anything and is getting me frustrated that i dont find the way to do it if anybody could help and give me some info i would apreciate it

    Thank You
    open includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    Customize the the menu section as you wish.

    <!--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="<?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>

  3. #3
    Join Date
    Oct 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Zen Cart MenuBar Customization

    Thanks you very much for the info but i still have another question im not really a PHP expert or not even intermediate myself so how do you add those links (Home page, Specials, New Products.....) to the PHP file cause im still kinda confused if you could please help.

    Thank You

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Zen Cart MenuBar Customization

    Quote Originally Posted by dragon03kf View Post
    Thanks you very much for the info but i still have another question im not really a PHP expert or not even intermediate myself so how do you add those links (Home page, Specials, New Products.....) to the PHP file cause im still kinda confused if you could please help.

    Thank You
    Add them as indicated by the highlighted section(s): follow the same pattern You'll need to look for some of the information in includes/filenames.php

    and
    includes/languages/english.php

    NOTE: the [home] link is already there.

    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="<?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 }?>
    <li><a href="<?php echo zen_href_link(FILENAME_NEW_PRODUCTS, '', 'NONSSL'); ?>"><?php echo BOX_HEADING_WHATS_NEW; ?></a></li>
    
    </ul>
    </div>

 

 

Similar Threads

  1. Zen-cart Customization Questions?
    By vsymons in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Feb 2007, 02:59 PM
  2. Zen Cart Customization
    By obiWasabi in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Oct 2006, 08:04 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