Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi guys,

 

I had found a great free template for a flower shop. I have modified some of the stuff because it was broken, plus i needed localization for my country. My problem is I never touched the About Us page, and it shows up as blank. Anybody knows what that is supposed to mean. The code looks ok, although I am not familiar with php syntax but i know html and c++ and the logic is similar:

 

The code is the following:

 

--------------------------------------------------------------------------------------------------------------------------------------------

<?php

/*

$Id: index.php,v 1.1 2005/08/11 17:37:59 hpdl Exp $

 

E-Commerce Solutions

 

Copyright © 2005

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

// the following cPath references come from application_top.php

$category_depth = 'top';

if (isset($cPath) && tep_not_null($cPath)) {

$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");

$cateqories_products = tep_db_fetch_array($categories_products_query);

if ($cateqories_products['total'] > 0) {

$category_depth = 'products'; // display products

} else {

$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");

$category_parent = tep_db_fetch_array($category_parent_query);

if ($category_parent['total'] > 0) {

$category_depth = 'nested'; // navigate through the categories

} else {

$category_depth = 'products'; // category has no products, but display the 'no products' message

}

}

}

 

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

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<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">-->

<link rel="stylesheet" type="text/css" href="style.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<tr>

<td width="160" align="right" valign="top">

<table width="158" cellpadding="0" cellspacing="0" border="0">

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

</table>

</td>

<td width="549" valign="top">

 

<table border="0" cellpadding="0" cellspacing="0" width="549">

<tr>

<td width="100%" height="100%" valign="top" >

 

<table border="0" width="100%" cellpadding="0" cellspacing="0" >

<tr>

<td width="100%" class="green" height="25" valign="top" style=" background:#235704 url(images/green_bg.gif) repeat-x bottom; padding-top:3px;" align="right">

<table border="0" cellpadding="0" cellspacing="0"><?php if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

 

include(DIR_WS_BOXES . 'currencies.php');

}?></table></td>

 

</tr>

<tr>

<td align="center" style="padding:20px; ">Put here your about us information!</td>

</tr>

 

 

 

 

</table>

</td>

</tr>

</table>

</td>

 

</tr>

 

 

 

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

 

 

</body>

</html>

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

 

---------------------------------------------------------------------------------------------------------------------------------

 

Any help would be appreciated.

Posted

You could be calling another file, not the one you think. It is a template, which means, anything can be changed for no good reason.

Posted (edited)

Hmm =) exactly i should see the text but for some reason i don't. But like you said maybe it's calling another file, or there's an error somewhere since 99% of the other files a functioning and working.

Edited by xecutable

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...