Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Posts
    3
    Plugin Contributions
    0

    Default Removing alt_nav links in DHTML menus

    A quick question about how to remove the links to alt_nav.php in the DHTML menus in admin.

    What I'm trying to achieve is to ensure that if someone clicks on the top level menus in zen cart the alt_nav.php script is not run (so the menus do not change location and the screen gets replaced with all menu options). This would means that to move from the home page, someone must actually select an option from the menu.

    I've searched everywhere about how to do this, but just can't find what I need to edit to remove the link to alt_nav.php.

    From past posts about this same thing on the forums, I've found that this functionality is not a zen cart bug but a conscious feature. It was intended for users who do not have Javascript. But I would still like to turn it off.

    Can anyone please explain how to remove? Please?

  2. #2
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Removing alt_nav links in DHTML menus

    admin\includes\header.php — Line 176 to 181

    Code:
    <?php
    // special spacing for alt_nav.php
      if (basename($PHP_SELF) == 'alt_nav.php') {
    ?>
    <tr><td>&nbsp;</td></tr>
    <?php } // alt_nav spacing ?>
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  3. #3
    Join Date
    Nov 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Removing alt_nav links in DHTML menus

    Thanks for your help - really appreciate your prompt reply. I tried this but it is still not working on my system. Is there something else I need to do?

    After making this change, each of the main menu headings in admin still links through to alt_nav.php.

    Many thanks again for your help in advance.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Removing alt_nav links in DHTML menus

    You'll have to alter every reference in the admin for the links generated using FILENAME_ALT_NAV
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Removing alt_nav links in DHTML menus

    Thank you so much - with that info I worked it out.

    Cheers and thanks again to everyone who helped. I REALLY appreciate it :)

 

 

Similar Threads

  1. v150 dhtml menus, some help needed
    By eternity575 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Apr 2012, 10:25 PM
  2. Removing quantity listing in left category menus?
    By agsmdkgmadsfgpioj in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 3 Jan 2012, 12:01 PM
  3. How To Add Tiny Menus Links to Bottom of Page?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 May 2011, 04:31 AM

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