Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    2
    Plugin Contributions
    0

    Default Text in top menu tabs displaying TOP_MENU_*

    Just installed ZC on my dreamhost account and then installed a free theme off the web.

    The only big issue I am having is that my top menu tabs display as: "TOP_MENU_NEW_PRODUCTS" vs. I am guessing what should be "New Products".

    After poking though the code of the template it looks like < ?php echo TOP_MENU_NEW_PRODUCTS; ?> is displaying "TOP_MENU_NEW_PRODUCTS" just that and not the value of the variable TOP_MENU_NEW_PRODUCTS.

    Any ideas here? I would post my URL but I just registered the domain and am accessing my site using a hardcoded nameserver locally.

    My PHP background tells me I have some kind of stupid variable scope issue or something like this. It also shows up on the search, language, cart and currency options below the main tabs.

    Thanks,

    Dan

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Text in top menu tabs displaying TOP_MENU_*

    https://www.zen-cart.com/tutorials/index.php?article=95

    You can use Admin -Tools - Developers Tool Kit to search for the strings to see where they're defined.

  3. #3
    Join Date
    May 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Text in top menu tabs displaying TOP_MENU_*

    Thanks for the tip. I guess the issue is that the these constants are not defined anywhere:

    /home/xxx/xxx/includes/templates/pure_blue/templates/tpl_top_nav.php

    Line #25 : <li id="<?php echo $active;?>"><a href="index.php?main_page=products_new"><?php echo TOP_MENU_NEW_PRODUCTS;?></a></li>

    Line #31 : <li id="<?php echo $active;?>"><a href="index.php?main_page=specials"><?php echo TOP_MENU_SPECIALS;?></a></li>

    Line #37 : <li id="<?php echo $active;?>"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo TOP_MENU_MY_ACCOUNT;?></a></li>

    Line #43 : <li id="<?php echo $active;?>"><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo TOP_MENU_VIEW_CART;?></a></li>

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

    Default Re: Text in top menu tabs displaying TOP_MENU_*

    TOP_MENU_ is not a standard Zen Cart constant format, so it looks like one of your custom template files is corrupted, missing or in the wrong place.

 

 

Similar Threads

  1. Browser top tabs - how can I stop it from displaying price?
    By Resqjock in forum General Questions
    Replies: 4
    Last Post: 10 Apr 2010, 07:04 PM
  2. Limiting the number of category tabs on the top menu
    By pedleyonline in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Mar 2010, 04:16 PM
  3. Categories-Tabs Menu displaying at the bottom?
    By znowflake in forum General Questions
    Replies: 2
    Last Post: 3 Feb 2010, 07:03 AM
  4. How to add text link for search on top menu bar?
    By hara in forum Customization from the Admin
    Replies: 1
    Last Post: 3 Oct 2008, 01:28 PM
  5. menu not displaying full text
    By Oseymour in forum Basic Configuration
    Replies: 3
    Last Post: 26 Sep 2007, 04: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