Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing Top horizontal nav bar


simrix

Recommended Posts

@@simrix

 

 

Since you are using a commercial template it could have been done in several ways. The proper way would be to have the language definition in the /includes/languages/english/specials.php file. Alternatively, it may have been hard coded into the /includes/header.php file. That file would also contain the link to the specials page.

 

 

 

Chris

Link to comment
Share on other sites

Here is the code

 

 

</div>

<div class="cl_both">

<div class="menu_wrapper_tl">

<div class="menu_wrapper_tr">

<div class="menu_wrapper_rep fs_lh">

<table cellpadding="0" cellspacing="0" border="0">

<tr>

<td class="menu">

<table cellpadding="0" cellspacing="0" border="0">

<tr>

 

<td <?php echo $item_menu_01;?> nowrap="nowrap" onclick="document.location='<?php echo tep_href_link('index.php')?>'"><a><?php printf(BOX_MANUFACTURER_INFO_HOMEPAGE,"")?></a></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td <?php echo $item_menu_02;?> nowrap="nowrap" onclick="document.location='<?php echo tep_href_link('products_new.php')?>'"><a><?php echo BOX_HEADING_WHATS_NEW?></a></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td <?php echo $item_menu_03;?> nowrap="nowrap" onclick="document.location='<?php echo tep_href_link('specials.php')?>'"><a><?php echo BOX_HEADING_SPECIALS?></a></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<?php if (tep_session_is_registered('customer_id')) {

 

$acc_link = tep_href_link('account.php');

$acc_title= HEADER_TITLE_MY_ACCOUNT;

Link to comment
Share on other sites

@@simrix

 

According to your last image, you already changed the echo statement to BOX_HEADING_ABOUT now you have to define the language in the /includes/languages/english.php or actually create an about.php to place into the language directory.

 

 

 

Chris

Link to comment
Share on other sites

Dear Chris,

Bundle of thanks again. Mine has been solved.

Please see attached picture.

I need to add more text about us page but could not successed might be due to size of page for text , can you please suggest how can add more text ?

 

Can you please advice certain SEO techniques ?

Regards

Ahmad

post-297180-0-80366100-1354058003_thumb.jpg

Link to comment
Share on other sites

@@simrix

 

How did you create the language text ? Did you actually create an about.php file and place it in the /includes/languages/english/ directory ? If you have, there shouldn't be any limitations to the text. However, you will have to escape any ' contained in that text. Words such as can't, won't and others like that would have to be entered as can\'t and won\'t or PHP will think you are beginning a command.

 

As for SEO, you will have to be more specific.

 

 

Chris

Link to comment
Share on other sites

In /public_html/includes/languages english.php

 

// specials box text in includes/boxes/specials.php

define('BOX_HEADING_SPECIALS', 'About');

 

When I try to change text "Specials" to "About" got error either i have created about.php page separately by copying the privacy page.

 

In /public_html/includes header.php

 

tep_href_link('specials.php')?>'"><a><?php echo BOX_HEADING_SPECIALS?></a></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

 

Changing Specials to about gives error too.

 

Overall i am getting problem in linking mine new generated about.php page to about us button.

 

Please advise

Regards

Ahmad

Link to comment
Share on other sites

Dear Chris,

Under present conditions when i open about us page

it opens www.domain.com/specials.php with mine profile text with title SPECIAL PRODUCTS either i am trying to get here www.domain.com/about.php with title ABOUT US

Please advise

Regards

Ahmad

Link to comment
Share on other sites

@@simrix

 

Change this line:

 

<td <?php echo $item_menu_03;?> nowrap="nowrap" onclick="document.location='<?php echo tep_href_link('specials.php')?>'"><a><?php echo BOX_HEADING_SPECIALS?></a></td>

 

to this:

 

<td <?php echo $item_menu_03;?> nowrap="nowrap" onclick="document.location='<?php echo tep_href_link('about.php')?>'"><a><?php echo BOX_HEADING_ABOUT?></a></td>

 

Add this line to the /includes/filesnames.php file:

 

define('FILENAME_ABOUT', 'about.php');

 

Then, COPY the /includes/languages/english/specials.php file and change that file name to about.php

 

The new about.php file will contain something like this:

 

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'About Us');

define('HEADING_TITLE', 'About Us');

 

define('TEXT_INFORMATION', 'Put information about your store here.');

?>

 

 

Chris

Link to comment
Share on other sites

If you have text like that in capitals it generally means that you are missing a define in a language file. Try adding

 

define('BOX_HEADING_ABOUT', 'About Us');

 

to the bottom of your includes.languages/english.php file

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

You need to find which file contains the link text and change

 

specials.php

 

to

 

whatever you called your about us file. php

 

and make sure you have defined the new file in your includes/filenames.php

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...