sharplab Posted July 30, 2006 Posted July 30, 2006 Here are the simple steps to add a hyperlink to any info box. Please note that the link must be to somewhere in your site and not external. I will add instructions to add and external hyperlink later. STEP 1 - Open up "includes/filenames.php" YOU WILL SEE LOTS OF THIS CODE: define('FILENAME_ACCOUNT', 'account.php'); define('FILENAME_ACCOUNT_EDIT', 'account_edit.php'); define('FILENAME_ACCOUNT_HISTORY', 'account_history.php'); define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php'); define('FILENAME_ACCOUNT_NEWSLETTERS', 'account_newsletters.php'); define('FILENAME_ACCOUNT_NOTIFICATIONS', 'account_notifications.php'); Each one of these lines is simply a "define" code for a file name. When 'FILENAME_ACCOUNT' is used it brings up the page "account.php". etc etc Now add the name of your page link into the filenames. Lets say you want to add a link to the cart that is lets say "directions-to-our-store.htm" You would add a single line of code to look like this: define('FILENAME_DIRECTIONS_STORE', 'directions-to-our-store.htm'); NOTE: YOU CAN USE ANY NAME YOU WANT JUST MAKE SURE IT IS UNIQUE AND NOT A DUPLICATE OF ANOTHER NAME. Example You can use: 'FILENAME_DIRECTIONS_MYSTORE' 'FILENAME_DIRECTIONS_JIMS_STORE' etc etc STEP 2 - Open up "includes/languages/english.php DEFINE WHAT THE TEXT FOR YOUR LINK WILL BE EXAMPLE: On your cart you want your link text to read lets say "Directions" So you would add a single line of code to read: define('ENTRY_DIRECTIONS', 'Directions'); NOTE: YOU CAN USE ANY NAME YOU WANT JUST MAKE SURE IT IS UNIQUE AND NOT A DUPLICATE OF ANOTHER NAME. Example You can use: 'ENTRY_OUR_DIRECTIONS' 'STORE_DIRECTIONS' etc etc Now that that is done you can insert this information into whatever info box you wish the link to appear. Lets say for example you want to add the directions page "directions-to-our-store.htm" to the "information box". OPEN UP: "includes/boxes/information.php Now add your link code wherever you want your link to appear. Caution if you want your link to appear last then you must add a ; symbol to the end of your code and remove the ; symbol from the current last link or your page will have errors. So here is what the code will look like for your Directions page: '<a href="' . tep_href_link('FILENAME_DIRECTIONS_STORE') . '">' . ENTRY_DIRECTIONS . '</a><br>' . WHICH ON YOUR CART WILL SHOW THE LINK: Directions WHICH WHEN CLICKED WILL BRING UP YOUR directions-to-our-store.htm PAGE! :D Hope this helps! Back up your files first! Have fun! Steve Current Contributions: Page Cache, Center Store, Ultimate URL's, Header Tags, Product Description , Image Add To Cart - , Store Cache
Recommended Posts
Archived
This topic is now archived and is closed to further replies.