phposcommerce

I cannot work out this old code PHP osCommerce


I am working with an old system for a colleague that uses osCommerce and I am trying to change some information in the about us section. Does anyone know how you'd change the content? I am a little lost analysing this code. Where is the TEXT_INFORMATION coming from?

<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US);

  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US));

  require(DIR_WS_INCLUDES . 'template_top.php');
?>

<h1><?php echo HEADING_TITLE; ?></h1>

<div class="contentContainer">
  <div class="contentText">
    <?php echo TEXT_INFORMATION; ?>
  </div>
</div>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Solution

  • TEXT_INFORMATION is definied in the language file. It has been required at the top on the line

    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US);
    

    Assuming your language is english you can find the about_us.php with language in the folder

    includes/languages/english