legendata Posted October 26, 2008 Posted October 26, 2008 Hello, I searched the forum, but couldn't find any info about adding new pages. Such as "FAQ" If anyone knows how to do it, please tell me. Thanks in advance, Ventsislav
Guest Posted October 26, 2008 Posted October 26, 2008 edit includes/boxes/information.phpto add the links If you need to create completely new pages then I suggest using a simple page such as shipping.php as a template
legendata Posted October 27, 2008 Author Posted October 27, 2008 Can you be more specific. Also I have no idea how to create the actual pages!? I want to have the following pages in Information Box: More Information Money Back Policy FAQ Testimonials Terms & Conditions About us Contact us Can you tell me step by step, how to create them? I'm so confused :( Thanks in advance, Ventsislav
Guest Posted October 27, 2008 Posted October 27, 2008 make a copy of catalog/shipping.php - call it faq.php change all instances of FILENAME_SHIPPING to FILENAME_FAQ make a copy of catalog/includes/languages/english/shipping.php - call it faq.php change the text as you require edit catalog/includes/filenames.php at the bottom (before the ?> ) add: define('FILENAME_FAQ','faq.php'); edit catalog/includes/boxes/information.php change '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . to '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . finally edit catalog/includes/languages/english.php find define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); and just below add define('BOX_INFORMATION_FAQ', 'FAQ'); Then repeat the process for the different pages you wish to add.
Guest Posted October 27, 2008 Posted October 27, 2008 This contribution might be helpful http://addons.oscommerce.com/info/1026 Chris
legendata Posted October 27, 2008 Author Posted October 27, 2008 Ok, I will try Tom's method tomorrow, if I can't get it to work I will try the contribution, Chris mentioned. I hope to get it work from the first time..... and i think that Tom's method will be interesting as I am no very familiar with php :). Also thanks for the quick replies!!!
legendata Posted October 27, 2008 Author Posted October 27, 2008 Ok, I managed to get the link FAQ at the info box, but the actual faq.php is blank.... :blush: Here's the code of catalog/faq.php : <?php /* $Id: shipping.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FAQ); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FAQ)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> and here's the code of catalog/includes/languages/english/faq.php : <?php /* $Id: shipping.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'FAQ'); define('HEADING_TITLE', 'FAQ (Frequenty Frequently Asked Questions)'); define('TEXT_INFORMATION', 'If your question is not answered below, please feel free to contact us!<br></br><br></br> Q: How can you sell this software so cheap? It seems to good to be true - is there a catch?<br></br> A: It's true but the thing is that we sell OEM products, that is you DO NOT receive a boxed set with a user manual available. What you get is ZIP files of the program. After you have unpacked the archive you are free to install the application where ever you want to. We guarantee that all our software is 100% working and full-function. These are no demo or trial. So if it does not run, we give money back. You can find a detailed description on how to install the application within the ZIP archive...<br></br><br></br> Q: What is the difference between OEM products and boxed sets?<br></br> A: OEM software is intended for large companies that use a lot of computing machines. These businesses do not need to buy a user manual or a branded box. This software is not final customer-oriented. All they need is a software media, e.g. a compact disk. Along with a boxed set the manufacturer also provides customers with technical support and some bonus. OEM products have no extra like this which brings the cost down. This is the reason why OEM software is so cheap.<br></br><br></br> Q: Do I have to get registered on the manufacturer's web site?<br></br> A: No, you don't need to because this is OEM software. Our company has already registered it and so there is no need to do it again. While installation the application will ask you to get registered, click "No", "Skip" or "Do not remind me of registration".<br></br><br></br> Q: Can I have access to updates?<br></br> A: Certainly you can! Absolutely all updates will be available. Plus you won't have to get registered on the manufacturer's web site. After the installation has been over, just click on "Updates".<br></br><br></br> Q: Is Technical Support available after the installation of the software?<br></br> A: We do not provide technical support. We can only help install software but we do not consult on how it works. You can find all information you might need to use the application in help files. To read these files start the program and select the "HELP" option in the menu.<br></br><br></br> Q: How much time does it take to deliver software?<br></br> A: Before you can buy anything, you must create an account on our site. Once you have it you can buy products. When you pay for any product, you will see in your account that you made a purchase and it will be in "Pending" or "Delivered" status. Once the status is changed to Delivered (normally takes few minutes or few hours), you will see download link at the bottom of your "Order Information" you will see "Download Links". Just click there and you will download your product immediately!<br></br><br></br> Q: What do I get after I have purchased software?<br></br> A: Once payment is cleared, you can log in to your account and download your product. What you get is a zip file, instructions and your unique serial number. It is very simple! You may just as well backup this program on a media, e.g. a CD or DVD where you could keep a large collection of different programs.<br></br><br></br> Q: I would like to get a program by mail on a CD. Can you do it for me?<br></br> A: No, we do not mail any CD, what we sell is archives to download. You can download an archive, unpack it and write down the program on a CD or DVD and then use it where ever you'd love to.<br></br><br></br> Q: I'd like to install Windows XP, will I have any problems about installation?<br></br> A: If you never have installed Windows, we strongly suggest you aks friend of someone who is familiar with windows isntallation.<br></br><br></br> Q: If I purchase your Windows or Office software, does it come with the Certificate of Authenticity?<br></br> A: No. We do not send COA, because its OEM-version. However we send you necessary serial numbers.<br></br><br></br> Q: I want to purchase Windows XP, Vista and Office 2003 or 2007. Microsoft requires a valid product key for activation of the product. Does your software come with a valid product key?<br></br> A: Yes. You get serial number and full installation instruction.<br></br><br></br> Q: Can I download your software at 56 kbps?<br></br> A: You can download any of our software at any speed, but it will take too long to download it. So we suggest you find a good connection to download it.<br></br><br></br> Q: Can I get a discount if I buy several applications?<br></br> A: YES! You could save a lot of money by purchasing several applications at time.<br></br><br></br> Q: If I failed to find software I need in your list, could you find it for me?<br></br> A: Yes we can try. Just contact us.<br></br><br></br> Q: I would like to purchase software for business. Can you send me a bill, invoice, a draft, etc?<br></br> A: No, we do not provide these documents.<br></br><br></br> Q: I need a license agreement. Can you send it to me?<br></br> A: No, we do not send a license agreement because it is OEM software.<br></br> Q: I have bought software which I don't like. Can I have my money back?<br></br> A: Yes, we will give your money back. Read carefully our «MoneyBack Рolicy». Note that refund takes time because of bank transactions. It usually takes 6 to 8 days. Remember that chargeback has a negative effect on your credit story, so feel free to contact us any time and we will make sure you have your money back without any negative impact.<br></br><br></br> Q: What forms of payments do you accept?<br></br> A: We use PayPal. So you can pay with any Credit/Debit Card. Just make shure your paypal email address is same as the email in your account on our site!<br></br><br></br>'); ?> Hope someone to edit them and make them work :rolleyes: . Thanks in advance, Ventsislav
dmnalven Posted October 27, 2008 Posted October 27, 2008 http://php.net For ALL problems, please review this link first -> osCommerce Knowledge Base
Guest Posted October 27, 2008 Posted October 27, 2008 I'm not sure how that last post was supposed to help. Your problem is that you have used an apostrophe without "escaping" it. For exmaple in you includes/languages/english/faq.php find A: It's true but the thing you need to change to A: It\'s true but the thing i.e. insert a \ before every apostrophe (except the very first and last ones).
legendata Posted October 28, 2008 Author Posted October 28, 2008 I'm not sure how that last post was supposed to help. Lol .... same here... Your problem is that you have used an apostrophe without "escaping" it. For exmaple in you includes/languages/english/faq.php find A: It's true but the thing you need to change to A: It\'s true but the thing i.e. insert a \ before every apostrophe (except the very first and last ones). maaaaaaaaaaaaaaaaan thanks a lot!!!!!!!!! I guess this: $Id: shipping.php 1739 2007-12-20 00:52:16Z hpdl $ ...was a problem as well!? because when I used "\" before each apostrophe, the page was still blank. then I made 2 new copies, edited $Id: ......... and then copied the text from the other one. When i uploaded them, it just worked !!!!!! finally i can finish my store tomorrow.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.