Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Extra Pages


bbybls

Recommended Posts

Please help! I am fairly new to php coding, but found an add on to add extra information pages (like about us) I followed the add on and still the about_us.php is not working.

It is supposed to look like this http://www.liquidatornation.com/test/shipping.php but only it is supposed to have about us instead of shipping, but instead this is what it does http://www.liquidatornation.com/test/about_us.php. It loads part of the page but not all of it.

 

This is what I have done:

 

I have added includes/languages/english/about_us.php

This file has the following

<?php
/*
 $Id: about_us.php 1739 2007-12-20 00:52:16Z hpdl $

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'About us');
define('HEADING_TITLE', 'About us');

define('TEXT_INFORMATION', 'Put here your About us info here.');
?>

 

Added about_us.php to the catalog with the following

<?php
/*
 $Id: about.php 1739 2007-12-20 00:52:16Z hpdl $

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

 Copyright (c) 2003 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));
?>
<!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 style="margin:0px">
<?php 
$inc_file = basename(__FILE__); 
require(DIR_WS_INCLUDES .'theme/main_theme.php');
?>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

then I altered the following files

includes/filenames.php added

define('FILENAME_ABOUT_US', 'about_us.php');

includes/languages/english.php added

define('BOX_INFORMATION_ABOUT_US', 'About Us');

includes/boxes/information.php added

$text .='<a href="'.tep_href_link(FILENAME_ABOUT_US).'">'.BOX_INFORMATION_ABOUT_US.'</a><br>';

 

Is there a file that I missed in altering? Thank you in advance.

Edited by bbybls
Link to comment
Share on other sites

I did finally get this to work, and am posting a reply incase anyone else has this problem.

I had forgotten to copy and rename shipping in the includes/theme. I copied shipping.php then renamed it to about_us.php. Everything is working great now.

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...