stevenrwoolley Posted November 6, 2005 Posted November 6, 2005 On the left column I have an info box called information. I have changed the conditions page but I can not find out where to edit the text ?Conditions of Use? on the information box it self. I am also planning on adding another link/ page on the information info box called questions and answers but not sure where to start. Any information would help. Thank you.
ratmarie Posted November 6, 2005 Posted November 6, 2005 On the left column I have an info box called information. I have changed the conditions page but I can not find out where to edit the text ?Conditions of Use? on the information box it self. I am also planning on adding another link/ page on the information info box called questions and answers but not sure where to start. Any information would help. Thank you. I found this in another topic by doing a search "conditions use":::: FIRST BACK UP FILES Step 1: Copy an existing page, say, /catalog/conditions.php. Save it with your new file name, say links.php In your new links.php file, look for: CODE $Id: conditions.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $ And change to: CODE $Id: links.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $ Look for: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS)); ?> And change to: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LINKS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LINKS)); ?> And now save the file --------------------------------------------------------------------------------------------------------------------------- Step 2: Now copy an existing language page, say, /catalog/includes/languages/english/conditions.php. Save it with your new file name, say links.php. In your new links.php file, look for: CODE $Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ And change to: CODE $Id: links.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ Look for: CODE define('NAVBAR_TITLE', 'Conditions of Use'); define('HEADING_TITLE', 'Conditions of Use'); And change to: CODE define('NAVBAR_TITLE', 'links'); define('HEADING_TITLE', 'links'); And now save the file ----------------------------------------------------------------------------------------------------------------------------- Step 3: Now, open /catalog/includes/filenames. Look for: CODE define('FILENAME_CONDITIONS', 'conditions.php'); Underneath it, add: CODE define('FILENAME_LINKS', 'links.php'); And now save the file ----------------------------------------------------------------------------------------------------------------------------- Step 4: Add a link to your site on whatever page/box you want it in. If adding it to the 'Information' box, for example, go to /catalog/includes/boxes/information.php. Look for: '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . Right underneath that, add: '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' . ----------------------------------------------------------------------------------------------------------------------------- Step 5: Then open up, /catalog/includes/languages/english.php. Look for: CODE // information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Privacy Notice'); define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); Add your new define somewhere in there, like so: CODE // information box text in includes/boxes/information.php define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Privacy Notice'); define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use'); define('BOX_INFORMATION_LINKS', 'Links'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Contact Us'); And now save the file Upload the files to your server and, if I've written this up correctly, you should now have a new link and page on your site -------------------------------------------------------------------------------------------------------------------------- If you wish to add a page/box to the right hand side then I suggest you open up /catalog/includes/boxes/information.php.and save the infromation file with a new name such as information_right.php Then open up /catalog/includes/column_right.php and add this code near the bottom if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'information_right.php'); And now save the file
stevenrwoolley Posted November 6, 2005 Author Posted November 6, 2005 What a great lesson; It took me a while and I made several mistakes ie.. spelling and locations of files, but I learned so much from your explanation. Great job laying it out for me. Thank you very much.
Guest Posted November 10, 2005 Posted November 10, 2005 What a great lesson; It took me a while and I made several mistakes ie.. spelling and locations of files, but I learned so much from your explanation. Great job laying it out for me. Thank you very much. How do you change the actual text within the shipping or the conditions of use file? Thanks, Tony [email protected]
stevenrwoolley Posted November 10, 2005 Author Posted November 10, 2005 conditions.php in the english folder. The same place you edited the index.php for your first page. /catalog/includes/languages/english/ I like your site, how did you get the image to run accross the top of you site.?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.