Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Text in top menu tabs displaying TOP_MENU_*

Text in top menu tabs displaying TOP_MENU_*

Locked

Views: 3,327

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 May 2009, 9:04 AM
#1
dantappin avatar

dantappin

New Zenner

Join Date:
May 2009
Posts:
2
Plugin Contributions:
0

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

20 May 2009, 1:17 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

20 May 2009, 2:12 PM
#3
dantappin avatar

dantappin

New Zenner

Join Date:
May 2009
Posts:
2
Plugin Contributions:
0

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>

20 May 2009, 2:21 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.