Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    102
    Plugin Contributions
    0

    Default How to modify top navigation menu?

    Hi Folks,

    I am a newbie to Zen Cart. Could someone tell me how can I add and delete items to top navigation menu?

    Currently there are 4 tabs (New Products, Specials, My Account and View Cart). I want to delete the first two and add 3 new tabs specific to my store so that when you click on it, it will take you to the specific page. My URL is: www.shinypetstore.com/index.php.

    I have been searching the forum for days with no success

    I really appreciate your help.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to modify top navigation menu?

    Your template has a custom <div id="top_nav"> section, and we can't tell where the code is or what it looks like from here. It is presumably in or called from /includes/templates/your_template/common/tpl_header.php, so that would be the place to start looking.
    If there is a support thread for the pure_orange_free template, either here or at its source, that would be the best place to ask.

  3. #3
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: How to modify top navigation menu?

    Sorry to but in gj, but I've had recent experience with this template. To modify the links, you'll need to open and edit 2 files:


    Edit links in this file:
    includes/templates/pure_orange/templates/tpl_top_nav.php


    and define the links text in this file:
    includes/languages/English/pure_orange/header.php


    Hope this helps.


    P.s. I know for this context but is spelled wrong, but if you add the other T, it gets edited...........I asked in a thread a while back if the mods would take that out of the list of "bad" words, but to no avail. See if I add the other T to it, it looks like this----------->########.
    Maybe they will allow it one day?
    Last edited by Get Em Fast; 6 May 2010 at 12:42 AM.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  4. #4
    Join Date
    Apr 2010
    Posts
    102
    Plugin Contributions
    0

    Default Re: How to modify top navigation menu?

    Thanks for both replies. I changed the define text by adding the word "Test" in the following file: includes/languages/English/pure_orange/header.php as follow:

    define('TOP_MENU_NEW_PRODUCTS', 'New Test Products');
    define('TOP_MENU_SPECIALS', 'Specials');
    define('TOP_MENU_VIEW_CART', 'View Cart');
    define('TOP_MENU_MY_ACCOUNT', 'My Test Account');

    I did not make any changes to tpl_top_nav.php. This is what I have in this file:

    <!--<div class="top-nav-left"></div>-->
    <div class="top-nav-right"></div>
    <ul class="list-style-none">
    <li class="home-link"><a href="<?php echo '' . HTTP_SERVER . DIR_WS_CATALOG;?>"><!--img src="images/spacer.gif" width="1" height="14" alt=""--></a></li>

    <?php
    if ($current_page_base == 'products_new') { $active = 'tab_active';
    } else { $active = '';
    }?>
    <li id="<?php echo $active;?>"><a href="index.php?main_page=products_new"><?php echo TOP_MENU_NEW_PRODUCTS;?></a></li>

    <?php
    if ($current_page_base == 'specials') { $active = 'tab_active';
    } else { $active = '';
    }?>
    <li id="<?php echo $active;?>"><a href="index.php?main_page=specials"><?php echo TOP_MENU_SPECIALS;?></a></li>

    <?php
    if ($current_page_base == 'account' || $current_page_base == 'login' || $current_page_base == 'account_edit' || $current_page_base == 'address_book' || $current_page_base == 'account_password' || $current_page_base == 'account_newsletters' || $current_page_base == 'account_notifications') { $active = 'tab_active';
    } else { $active = '';
    }?>
    <li id="<?php echo $active;?>"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo TOP_MENU_MY_ACCOUNT;?></a></li>

    <?php
    if ($current_page_base == 'shopping_cart') { $active = 'tab_active';
    } else { $active = '';
    }?>
    <li id="<?php echo $active;?>"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo TOP_MENU_VIEW_CART;?></a></li>
    </ul>
    </div>

    Saved the changes, but I don't see any change in top nav. Still it shows New Products and My Account.

    Do I need to check somehwere else?

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to modify top navigation menu?

    I dom't know if you have accounted for this in your actual files, but the template foldername you have active is /pure_orange_free/, not /pure_orange/.
    Otherwise, someone who has actually used the template is best suited to answer questions about it, so thanks for "butting in".

  6. #6
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: How to modify top navigation menu?

    Well, as I was pretty busy, and didn't take time to check the site, gj is right......your version of the template DOES contain the word free in it. Sorry for not checking that. But it looks like you might have got it all figured out by now, as I see "Cat Products" and "Dog Products" in your menu?
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. Replies: 10
    Last Post: 11 Oct 2017, 08:09 PM
  2. Stylesheet to edit Top Navigation Menu?
    By solarguy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Nov 2010, 07:18 PM
  3. Top Navigation Menu Bar Removal?
    By jaguarx in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Oct 2009, 07:25 AM
  4. Modify the top navigation buttons.
    By stuffdone in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 3 Aug 2007, 01:25 AM
  5. How to modify the top menu links
    By cadarilondon in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Aug 2007, 12:02 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