Rainee Posted April 15, 2007 Posted April 15, 2007 Hi there, I'm a newbie to OsCommerce and I'm hoping some one can please point me in the right direction. I'm helping a friend with his site. We need to change some information... Under "More Info" on this page: http://www.dairymister.com/. We need to change the "sizing calculator information as it is not correct. Currently it links to another page in his site, we need instead to have it link to this page: http://www.jaybird-mfg.com/dist/distcalc.htm as that has the correct information. Could some kind person either explain to me how to do this, or point me to some instruction on how to change this link? Also I am wanting to add another page to this site and am looking for information on how to do this as well. Any suggestion/help is greafully appreciated as we need to change the link ASAP. Thanks so much and have a great day,
spax Posted April 15, 2007 Posted April 15, 2007 In your includes/boxes/information.php file (I'm assuming you are using information.php), you will see some code, that has something like this included: $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); Those with the <a href= part are links. You will have a few more but they will all look like that. You need to add a normal html anchor to that code for the new external link. '<a href="http://www.jaybird-mfg.com/dist/distcalc.htm" target="_blank">Sizing Calculator</a><br>' . Using the above as an example and placing the new link below the "privacy" link, it would look like this: $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="http://www.jaybird-mfg.com/dist/distcalc.htm" target="_blank">Sizing Calculator</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); You can add it where you need to. Be safe and make a copy of the file before you attempt any changes. That way, if it goes wrong, you can easily recover. To add a new page, read this: http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49
Rainee Posted April 15, 2007 Author Posted April 15, 2007 Thank you so much Spax, I really appreciate your info, enjoy your day.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.