cg180659 Posted August 11, 2008 Posted August 11, 2008 hiya! ok so far, I have been able to create new information pages, and link them in the categories box. brilliant. but since I copied conditions.php file for my new pages, they all say "Conditions of Use" in the box title. When I go to my english.php file I have the following defined for the exchanges page: define('BOX_HEADING_INFORMATION_EXCHANGE', 'Exchange'); define('FILENAME_EXCHANGE', 'exchange.php'); To the best of my knowledge, that defines the exchanges page. Below please find the code for the exchanges page: <?php /* $Id: conditions.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $ 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_CONDITIONS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS)); ?> <!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="0" cellpadding="0"> <tr> <td class="col_left"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </td> <!-- body_text //--> <td width="100%" class="col_center"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td> <? tep_draw_heading_top();?> <? new contentBoxHeading_ProdNew($info_box_contents);?> <? tep_draw_heading_top_1();?> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"> We are proud to present this exclusive service to our dear customers. If you are tired of using your same old phone, or you just want to have something with better features which can help you with your life style and business needs. But on the other hand you do not want to spend a huge amount of money; we have a solution for you. Bring in your old phone with all the accessories or box you have and we will buy your phone back and will give you a brand new phone of your choice. (Some conditions apply).</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 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> <?php tep_draw_heading_bottom_1();?> <?php tep_draw_heading_bottom();?> </td></tr> </table> </form></td> <!-- body_text_eof //--> <td class="col_right"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--></body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Now, when I change this: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS)); to this: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_EXCHANGE); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_EXCHANGE)); Nothing happens! What am I supposed to do to change the box title?! Please help! You all have been very helpful so far, so I trust you can help me again :) SPACE FOR RENT!
Guest Posted August 11, 2008 Posted August 11, 2008 Heres a step by step on how to add a new box page. http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49
cg180659 Posted August 12, 2008 Author Posted August 12, 2008 thanks for the reply! I figured out how to do it! SPACE FOR RENT!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.