Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

new link in the information box


1bigworld

Recommended Posts

hello,

 

i would like to add a new link in the information box, where there are also the other links like conditions of use or contact us.

the new link should be "links", and should open a new age with links to other pages. how do i do this?

 

tha,

 

patrick

Link to comment
Share on other sites

hello,

 

i would like to add a new link in the information box, where there are also the other links like conditions of use or contact us.

the new link should be "links", and should open a new age with links to other pages. how do i do this?

 

tha,

 

patrick

here you go, follow this exactly and it will work, then you can go into your admin and add whatever html you want to the page just as you would any other page you edit, or else do it via ftp like with dreamweaver.

make sure you have a backup of whatever you edit in case you make any mistakes. this is simple enough for anyone to do though, I got this from another thread somewhere when I needed to know how to do the same :thumbsup:

 

FIRST BACK UP FILES

 

Step 1:

 

Copy an existing page, say, /catalog/conditions.php. Save it with your new file name, say links.php

 

In your new links.php file, look for:

 

 

CODE

$Id: conditions.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $

 

 

And change to:

 

CODE

$Id: links.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $

 

 

Look for:

 

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS));

?>

 

 

And change to:

 

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LINKS);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LINKS));

?>

 

And now save the file

---------------------------------------------------------------------------------------------------------------------------

Step 2:

Now copy an existing language page, say, /catalog/includes/languages/english/conditions.php. Save it with your new file name, say links.php.

 

In your new links.php file, look for:

 

CODE

$Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

 

And change to:

 

CODE

$Id: links.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

Look for:

 

CODE

define('NAVBAR_TITLE', 'Conditions of Use');

define('HEADING_TITLE', 'Conditions of Use');

 

And change to:

 

CODE

define('NAVBAR_TITLE', 'links');

define('HEADING_TITLE', 'links');

 

And now save the file

-----------------------------------------------------------------------------------------------------------------------------

Step 3:

Now, open /catalog/includes/filenames. Look for:

 

CODE

define('FILENAME_CONDITIONS', 'conditions.php');

 

 

Underneath it, add:

 

CODE

define('FILENAME_LINKS', 'links.php');

 

And now save the file-----------------------------------------------------------------------------------------------------------------------------

Step 4:

 

Add a link to your site on whatever page/box you want it in. If adding it to the 'Information' box, for example, go to /catalog/includes/boxes/information.php. Look for:

 

 

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

 

 

Right underneath that, add:

 

 

'<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' .

 

 

 

save the file

-----------------------------------------------------------------------------------------------------------------------------

Step 5:

 

Then open up, /catalog/includes/languages/english.php. Look for:

 

CODE

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

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

 

Add your new define somewhere in there, like so:

 

CODE

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

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_LINKS', 'Links');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

 

And now save the file

 

Upload the files to your server and, success!

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Link to comment
Share on other sites

  • 1 month later...

Archived

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

×
×
  • Create New...