http://addons.oscommerce.com/info/5762
This mod does not work in version 2.3.1. I have therefore amended it. The code, based on val-ent's post, is shown below.
Quote
This is a simple mod for creating extra pages in the Information box (on the left column by default)
I will be doing the instructions for creating an extra information page for external links... but it is fairly simple to change it
to create a page for anything else you want.
you can see this mod in operation on www.nixdisc.com
1) download the /shipping.php file from your website and open it
find the following code
FILENAME_SHIPPING
and replace it with
FILENAME_LINKS
(There should be 2 instances of this)
save this file as links.php and upload it to the catalog folder of your website
2) Create a new PHP file and copy/paste the following code to it, then save this file as links.php (this is the content file)
<?php
// start of extra info page
define('NAVBAR_TITLE', 'External Links');
define('HEADING_TITLE', 'External Links');
define('TEXT_INFORMATION', 'Insert page content here!');
// end of extra info page
?>
Upload this file to inclues/languages/english/, you will also want to create another one of these for each language your shop runs on
3) open includes/filenames.php and add this code at the bottom (before the ?>)
define('FILENAME_LINKS', 'links.php');
Upload this file
4) open includes/modules/boxes/bm_information.php and find the following code
' <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>' .
just before it add
' <a href="' . tep_href_link(FILENAME_LINKS) . '">' . MODULE_BOXES_INFORMATION_BOX_LINKS . '</a><br />' .
upload this file
5) open includes/languages/english/modules/boxes/bm_information.php and find the following code
define('MODULE_BOXES_INFORMATION_BOX_CONTACT', 'Contact Us');
just after it add
define('MODULE_BOXES_INFORMATION_BOX_LINKS', 'External Links');
save and upload this file to your shop, you will also need to do this for each language you are using
6) Double check that you have saved and uploaded all the files, now you can open the links.php file in your catalog directory and start to
modify the content of it!
Thats it your all done!!
I hope you like this little mod
Jim
Amended by Paul March 22nd 2011
I will be doing the instructions for creating an extra information page for external links... but it is fairly simple to change it
to create a page for anything else you want.
you can see this mod in operation on www.nixdisc.com
1) download the /shipping.php file from your website and open it
find the following code
FILENAME_SHIPPING
and replace it with
FILENAME_LINKS
(There should be 2 instances of this)
save this file as links.php and upload it to the catalog folder of your website
2) Create a new PHP file and copy/paste the following code to it, then save this file as links.php (this is the content file)
<?php
// start of extra info page
define('NAVBAR_TITLE', 'External Links');
define('HEADING_TITLE', 'External Links');
define('TEXT_INFORMATION', 'Insert page content here!');
// end of extra info page
?>
Upload this file to inclues/languages/english/, you will also want to create another one of these for each language your shop runs on
3) open includes/filenames.php and add this code at the bottom (before the ?>)
define('FILENAME_LINKS', 'links.php');
Upload this file
4) open includes/modules/boxes/bm_information.php and find the following code
' <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>' .
just before it add
' <a href="' . tep_href_link(FILENAME_LINKS) . '">' . MODULE_BOXES_INFORMATION_BOX_LINKS . '</a><br />' .
upload this file
5) open includes/languages/english/modules/boxes/bm_information.php and find the following code
define('MODULE_BOXES_INFORMATION_BOX_CONTACT', 'Contact Us');
just after it add
define('MODULE_BOXES_INFORMATION_BOX_LINKS', 'External Links');
save and upload this file to your shop, you will also need to do this for each language you are using
6) Double check that you have saved and uploaded all the files, now you can open the links.php file in your catalog directory and start to
modify the content of it!
Thats it your all done!!
I hope you like this little mod
Jim
Amended by Paul March 22nd 2011















