Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newbie Help !


toby1

Recommended Posts

Posted

Hi

 

I have a problem that when my start page loads the navigation bar shows [ HEADER_TITLE_Home] and [HEADER_TITLE_Shop].Instead of just "home" and "Shop" The source looks like this:

 

class="headerNavigation">HEADER_TITLE_Home</a> » <a href="http://www.firststopfurniture.co.uk/catalog/index.php?osCsid=d873623ecae8848a04419ef3c0822429" class="headerNavigation">HEADER_TITLE_Shop</a></td>

<td align="right" class="headerNavigation"><a

 

 

I realise that I have to find the HEADER_TITLE part and erase it. But I can't find where it is?. Can anybody advise?

 

Thanks for looking

Posted

Sounds like you need to look in /includes/languages/english.php

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
Sounds like you need to look in /includes/languages/english.php

Hi

I have looked there and even erased the [DEFINE_HEADER_TITLE_Home' ; Home] line .... but it still appears on the navigation bar? I have traced it to the Class = "Headernavigation" in the Header.php it inserts

 

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?

 

It appears that from looking at the source the part [<?php echo $breadcrumb->trail] is where it inserts the HEADER_TITLE_Home line instead of just Home ...... ditto for shop.

Posted
Hi

I have looked there and even erased the [DEFINE_HEADER_TITLE_Home' ; Home] line .... but it still appears on the navigation bar? I have traced it to the Class = "Headernavigation" in the Header.php it inserts

 

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?

 

It appears that from looking at the source the part [<?php echo $breadcrumb->trail] is where it inserts the HEADER_TITLE_Home line instead of just Home ...... ditto for shop.

 

Is This Uncureable ?

Posted

open your includes>header.php and make sure your code on line 64 is:

 

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 

Then open your includes>languages>english.php file and make sure your lines 55 and 56 looks:

 

define('HEADER_TITLE_TOP', 'Home');
define('HEADER_TITLE_CATALOG', 'Shop');

Posted
open your includes>header.php and make sure your code on line 64 is:

 

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 

Then open your includes>languages>english.php file and make sure your lines 55 and 56 looks:

 

define('HEADER_TITLE_TOP', 'Home');
define('HEADER_TITLE_CATALOG', 'Shop');

 

Thank you Lola ..... all that checks out fine. The English php file showed HEADER_TITLE_HOME for 'Home'. Changing this to TOP has made no difference and even still shows HEADER_TITLE_HOME in the frontpage source code.??

Posted
Thank you Lola ..... all that checks out fine. The English php file showed HEADER_TITLE_HOME for 'Home'. Changing this to TOP has made no difference and even still shows HEADER_TITLE_HOME in the frontpage source code.??

 

The problem can be clearly seen at www.Firststopfurniture.co.uk ........... Thanks

Posted
The problem can be clearly seen at www.Firststopfurniture.co.uk ........... Thanks

 

Surely it can't be uncureable ..........

Posted
Surely it can't be uncureable ..........

 

You can always delete the header by writing over it altogether

This will cure the problem for you

 

Open up header.php and simply delete all that is in it

Then add the following

 

<center>

<IMG SRC="http://www.firststopfurniture.co.uk/catalog/images/Furn.gif" border=0>

</center>

 

This will display your header banner, but without the annoying text under it

 

MAKE SURE TO BACK UP YOUR ORIGINAL FILE

Posted

Change in it application_top.php

 

Around Line 479:

 

$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

Is that like the above?

Posted

please do not use any hard links to your site, it will only give you headaches on trying to find the problem when you start using an ssl certificate, let osCommerce handle the http/https portion, you just handle the images section. look in your source code, you can replase the reference to an image very easily if you read the code on the specific page.

Posted

Then you have deleted language files and folder other than english. Replace those language folders and you have fixed you header text issues.

Posted
Then you have deleted language files and folder other than english. Replace those language folders and you have fixed you header text issues.

 

Thank you peuge changing the application top php solved the problem. Again many thanks to all who replied.

Archived

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

×
×
  • Create New...