Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osCommerce & STS combined => error!


Chris82

Recommended Posts

Posted

Hi there,

 

I'm pretty new to osCommerce. I installed

it and also installed STS so I can easily

change the look of my shop.

 

But when I run the shop, after a clean installation

including STS it already gives me an error.

 

I guess in the index.php

 

I have installed osCommerce without STS before

and it ran error free.

 

I included a screenshot of the error box, maybe

somebody could help me.. Would be ace!

 

Grtz Chris

 

error.jpg

 

 

Piece of code from index.php:

 

<?php
/*
 $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $

 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');

// 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
  }
}
 }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...