Primo Posted September 6, 2003 Posted September 6, 2003 I try to add a line (link) to ?INFORMATION Box? and I?m having some problems! I need to add a "line" to Information Box called "Info", to do this I: - Go to includesboxesinformation.php and I add the line '<a href="' . tep_href_link(FILENAME_INFO) . '">' . BOX_INFORMATION_INFO . '</a><br>' . to: $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); - Then i go to includeslanguagesenglish.php and i add: define('BOX_INFORMATION_INFO', 'Information'); to: // information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Informations'); define('BOX_INFORMATION_PRIVACY', 'Terms & Conditions'); define('BOX_INFORMATION_CONDITIONS', 'Contacts'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Send your comment'); Then i enter includeslanguagesenglish... and i create the file info.php. The problem is that the "link Information" appears but it's not working because the link is "http://www.mystore.xxxt/catalog/FILENAME_INFO?" What i'm i doig wrong? Please help! : :?
Guest Posted September 6, 2003 Posted September 6, 2003 add define('FILENAME_INFO', '*filenameyou want to link to'); to application_top.php
Primo Posted September 6, 2003 Author Posted September 6, 2003 Thank you freerangemum but it's not working yet.. Now it gives a good link like .../contacts.php? (i change the file and defines to contacts.php) and not the .../FILENAME_INFO?" But when you enter "Contacts" in Information Box it gives a blank page. Please check: http://www.gsmbiz.net/loja/index.php?langu...29c9b1410a0ec2b and enter "Contacts" I have filled the file "contacts.php" correctly... What may be wrong now? :?
Guest Posted September 6, 2003 Posted September 6, 2003 Did you make your contacts.php based on information.php? This is what shows when you view the source <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> Post the code for your contacts.php here if you need more help with it.
Primo Posted September 6, 2003 Author Posted September 6, 2003 To create the contacts.php what i did was: I made a copy of the file "privacy.php" and rename that copy to contacts.php. Here is (ALL) what i have in contacts.php: <?php /* $Id: contacts.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Contacts'); define('HEADING_TITLE', 'Contacts'); define('TEXT_INFORMATION', 'Put here your contacts'); ?>
Guest Posted September 6, 2003 Posted September 6, 2003 That's a copy of the privacy.php from includes/language/english/ & should go in the same directory once you've amended the details & saved it as contacts.php You ALSO need to copy & amend the privacy.php file that you'll find in your 'loja' folder.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.