Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where can I add a footer link?


astoller

Recommended Posts

Posted

Hi

 

I have a set up using its own template called Notts.

I want to add a text link back to the home page.

What file do I edit to add in my text link ?

 

Currently there is no text copywrite message in all the

php files I've look in so I dont know which footer.php

to edit, if indeed that is what i should do

 

Thaks

Art

Posted

inside the includes folder don't u have footer.php?? (together with the header.php)

when u edit thos files all the site affected & no need to add in all pages,

maybe i didn't understand the question, but hope its helped..

Posted

Well, here's the footer I get inside includes folder.

So just add it in here?

 

 

<?php

/*

$Id: footer.php,v 1.1.1.1 2004/03/04 23:40:38 ccwjr Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

//You will need to edit this file In the /templates/(template name)/

 

//If it is used by the template you are using>

?>

Posted
Well, here's the footer I get inside includes folder.

So just add it in here?

<?php

/*

$Id: footer.php,v 1.1.1.1 2004/03/04 23:40:38 ccwjr Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

//You will need to edit this file In the /templates/(template name)/

 

//If it is used by the template you are using>

?>

 

 

Hello,

 

If I acctually understand your question correctly, you want to edit or add a footer to each page. If that is the case you can do this from the includes/laguages/english.php file. (assuming you are english site) The second last line contains the footer text that appears on each page.

 

Hope this helps

Posted

2nd last line says

 

define('TEXT_PREFIX', 'txt_');

 

Whereas I see line 360 says

 

define('FOOTER_TEXT_BODY', 'Copyright © 2006 Lincoln Ltd',

require(DIR_WS_LANGUAGES . 'add_ccgvdc_english.php');

 

So how would I add in the footer link

<a href="http://www.doamin.com">keyword</a>

 

Thanks

Arthur

Posted

Just add the link in the FOOTER_TEXT_BODY line:

 

define('FOOTER_TEXT_BODY', 'Copyright © 2006 Lincoln Ltd <a href="http://www.somesite.com">SomeSite</a>');

 

If you are staying within the osCommerce site it is better to do something like this though:

 

define('FOOTER_TEXT_BODY', 'Copyright © 2006 Lincoln Ltd <a href="' . tep_href_link('somepage.php') . '">SomePage</a>');

Archived

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

×
×
  • Create New...