Guest Posted February 9, 2005 Share Posted February 9, 2005 This is probably a lot easier than I imagine, but have been trying things for a while, searching the Forums, Knowledge Base, etc. and can't find a simple solution. Want to do two things: 1. Add text to the Contact Us page. Can this be done on the contact_us.php page without having to alter the includes/languages/english/contact_us.php page? 2. Add additional pages for about_us.php, calendar.php, news.php and so on. My client will eventually take over the simple maintenance of those pages and there is no way they will understand how to alter two files to make one change. I have created a custom HTML menu and added it to the header.php file. Now need to create the files to link to. What's the easiest, straight-forward way? The community support for this product is second to none! As I get better with this product I hope to be able to contribute as well. Thanks in advance for any tips in the right direction! Link to comment Share on other sites More sharing options...
ozcsys Posted February 9, 2005 Share Posted February 9, 2005 This is probably a lot easier than I imagine, but have been trying things for a while, searching the Forums, Knowledge Base, etc. and can't find a simple solution. Want to do two things: 1. Add text to the Contact Us page. Can this be done on the contact_us.php page without having to alter the includes/languages/english/contact_us.php page? 2. Add additional pages for about_us.php, calendar.php, news.php and so on. My client will eventually take over the simple maintenance of those pages and there is no way they will understand how to alter two files to make one change. I have created a custom HTML menu and added it to the header.php file. Now need to create the files to link to. What's the easiest, straight-forward way? The community support for this product is second to none! As I get better with this product I hope to be able to contribute as well. Thanks in advance for any tips in the right direction! <{POST_SNAPBACK}> 1. If you are trying to make is easier for someone and you are only using one language you can make a html file for them to edit so they can do it in dw or any wysiwyg editor In the shipping, privacy and other info page you can see this code <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> Replace it with <tr> <td class="main"><?php require('privacy.html'); ?></td> </tr> and add the privacy.html file to your root or catalog folder with the info you need on the page. Make sure it does not have the <body> or <html> tags included just the html code needed to format the text. 2. To add new pages you can follow the instructions found in the knowledg base found HERE The instructions are for adding the links to the information box but once you make the pages you can add the links anywhere on your site (like in the header) that you want. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2005 Share Posted February 9, 2005 ozcsys: Thanks for pointing me in the right direction! It is working great! :thumbsup: Link to comment Share on other sites More sharing options...
TORON Posted February 11, 2005 Share Posted February 11, 2005 <?php /* $Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Shipping & Returns'); define('HEADING_TITLE', 'Shipping & Returns'); /* define('MY_TEXT', 'all my text here:'); */ ?> <tr> <td class="main"><?php require('../policy.html'); ?></td> </tr> Why is it the "policy.html" shows up above everything else? Trying to add text in the body of the page. Link to comment Share on other sites More sharing options...
♥Vger Posted February 11, 2005 Share Posted February 11, 2005 Because you put the include in the includes/languages/english/shipping.php page instead of into the root level shipping.php page. Vger <?php /* ?$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright (c) 2002 osCommerce ?Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Shipping & Returns'); define('HEADING_TITLE', 'Shipping & Returns'); /* define('MY_TEXT', 'all my text here:'); */ ?> <tr> <td class="main"><?php require('../policy.html'); ?></td> </tr> Why is it the "policy.html" shows up above everything else? Trying to add text in the body of the page. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.