Vansell Posted March 25, 2010 Share Posted March 25, 2010 Hi, new to PHP, trying to add an additional option with the english.php // information box text in includes/boxes/information.php define('BOX_INFORMATION_SHIPPING', 'About Us');define('BOX_HEADING_INFORMATION', 'About Us2'); define('BOX_INFORMATION_PRIVACY', 'Services'); define('BOX_INFORMATION_CONDITIONS', 'Gubbins'); define('BOX_INFORMATION_INFORMATION', 'Information'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); all works bar the INFORMATION section. When it is clicked you are taken to BOX_INFORMATION_INFORMATION. Can anyone assist in helping me get this to point to information.php Go easy as all help would be much appreciated. Thanks, Link to comment Share on other sites More sharing options...
germ Posted March 25, 2010 Share Posted March 25, 2010 Hi, new to PHP, trying to add an additional option with the english.php // information box text in includes/boxes/information.php define('BOX_INFORMATION_SHIPPING', 'About Us');define('BOX_HEADING_INFORMATION', 'About Us2'); define('BOX_INFORMATION_PRIVACY', 'Services'); define('BOX_INFORMATION_CONDITIONS', 'Gubbins'); define('BOX_INFORMATION_INFORMATION', 'Information'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); all works bar the INFORMATION section. When it is clicked you are taken to BOX_INFORMATION_INFORMATION. Can anyone assist in helping me get this to point to information.php Go easy as all help would be much appreciated. Thanks, Add this to /includes/filenames.php: define('FILENAME_INFORMATION', 'information.php'); Then the code for the link could be something like this: echo '<a href="' . tep_href_link(FILENAME_INFORMATION) . '">' . BOX_INFORMATION_INFORMATION . '</a>'; If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Vansell Posted March 30, 2010 Author Share Posted March 30, 2010 Add this to /includes/filenames.php: define('FILENAME_INFORMATION', 'information.php'); Then the code for the link could be something like this: echo '<a href="' . tep_href_link(FILENAME_INFORMATION) . '">' . BOX_INFORMATION_INFORMATION . '</a>'; Thanks for your help, worked a treat !!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.