Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello!

 

I installed a template which worked very well. In the associated html-file I can change the links that you find in the header e.g. Home, Account,...

It looks like this:

<span><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">Home</a>'; ?></span>

 

How can I change the code so that the link will not just always appear as "Home", but will appear in the selected language?

 

I hope you understand what I mean and that you can help me with that.

Thanks a lot,

 

Regards,

 

Chris

Posted

Hello!

 

I installed a template which worked very well. In the associated html-file I can change the links that you find in the header e.g. Home, Account,...

It looks like this:

<span><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">Home</a>'; ?></span>

 

How can I change the code so that the link will not just always appear as "Home", but will appear in the selected language?

 

I hope you understand what I mean and that you can help me with that.

Thanks a lot,

 

Regards,

 

Chris

 

You need to make a language define and then replace the word "home" with this define, ie

 

in the language file

define('LINK_INDEX', 'home');

 

in your template

 <a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"  class="linSt1"><?php echo(LINK_INDEX); ?></a>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...