kruiser69 Posted March 30, 2003 Share Posted March 30, 2003 wot am i missing ? i added the file battery.php to /shop and added these lines define('BOX_INFORMATION_BATTERY', 'BATTERY CROSS REFERENCE'); to english.php and this line '<a href="' . tep_href_link(FILENAME_BATTERY, '', 'NONSSL') . '">' . BOX_INFORMATION_BATTERY . '</a><br>' . to information.php what is wrong ??? Link to comment Share on other sites More sharing options...
Ajeh Posted March 30, 2003 Share Posted March 30, 2003 Kind of depends on where you added the line to information.php and what is it doing that needs fixing? Link to comment Share on other sites More sharing options...
kruiser69 Posted March 30, 2003 Author Share Posted March 30, 2003 i pasted it here in information.php u can take a look at wot happens at www.durasales.com.au/shop new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS, '', 'NONSSL') . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_BATTERY, '', 'NONSSL') . '">' . BOX_INFORMATION_BATTERY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>' Link to comment Share on other sites More sharing options...
Ajeh Posted March 30, 2003 Share Posted March 30, 2003 And you defined FILENAME_BATTERY where? Link to comment Share on other sites More sharing options...
Ajeh Posted March 30, 2003 Share Posted March 30, 2003 Look on line 249 of english.php do you have something just stuck in there that may not belong? Like new definitions with a typo or something? Link to comment Share on other sites More sharing options...
kruiser69 Posted March 30, 2003 Author Share Posted March 30, 2003 i defined it in english.php define('BOX_INFORMATION_CONTACT', 'CONTACT US'); define('BOX_INFORMATION_BATTERY', 'BATTERY CROSS REFERENCE'); Link to comment Share on other sites More sharing options...
Ajeh Posted March 30, 2003 Share Posted March 30, 2003 Where is define('FILENAME_BATTERY','battery.php'); at? Link to comment Share on other sites More sharing options...
kruiser69 Posted March 30, 2003 Author Share Posted March 30, 2003 the file is in /public_html/shop/includes/languages/english/ Link to comment Share on other sites More sharing options...
kruiser69 Posted March 30, 2003 Author Share Posted March 30, 2003 i dont have that anywhere Link to comment Share on other sites More sharing options...
Ajeh Posted March 30, 2003 Share Posted March 30, 2003 You are saying ... load a file from a definition called FILENAME_BATTERY this would be similar to FILENAME_DEFAULT where that value is default.php and that file is located in the /catalog directory so when it is referenced as FILENAME_DEFAULT it is interpreted to be default.php You should have a filename called something, I am assuming batter.php This would be defined as: define('FILENAME_BATTERY','battey.php'); Then that file would go in /catalog and a language file for it would go in /includes/languages/english/battery.php Link to comment Share on other sites More sharing options...
kruiser69 Posted March 30, 2003 Author Share Posted March 30, 2003 the filename is battery.php THIS LINE IS IN engilish.php define('BOX_INFORMATION_BATTERY', 'BATTERY CROSS REFERENCE'); THIS LINE IS IN information.php '<a href="' . tep_href_link(FILENAME_BATTERY, '', 'NONSSL') . '">' . BOX_INFORMATION_BATTERY . '</a><br>' . THE FILE LOCATED IN /public_html/shop/includes/languages/english/ is that easier to tell me wot i am doing wrong ? Link to comment Share on other sites More sharing options...
Ajeh Posted March 30, 2003 Share Posted March 30, 2003 The part where you are missing the code is a problem. Look at /catalog/contact_us.php Now look at /catalog/includes/languages/english/contact_us.php Now look at /catalog/includes/languages/espanol/contact_us.php Now look at /catalog/includes/languages/german/contact_us.php Now notice there is a define statement either in /includes/application_top.php or in /includes/filenames.php for: define('FILENAME_CONTACT_US', 'contact_us.php'); Now look in /includes/languages/english.php There is a define statement there: define('BOX_INFORMATION_CONTACT', 'Contact Us'); Now look in /includes/boxes/information.php There is a peice of code there: $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_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); Put all this together ... and there is a box on the screen that contains a link to the contact_us.php page. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.