Hi,

I have a pretty heavily modified Zen Cart website. The programmer we hired to create us a site simply just modified the Zen Cart package. At the time of the site's creation, we only needed one Folder inside of "Categores/Products – Top." I recently added a new folder to the Catefories/Products – Top folder and although all sub-categories and products within the new folder display properly, they're within the folder used for the first ever top category.

After much searching, I discovered that the programmer has simply created a table that displays different cells based on what the user is looking at. All sub-categories and products happen to fall within one cell that, so the CSS and page headings all stay the same, regardless of which of the top-categories I choose.

For example, If I click on the top category "Subjects", I'm taken to the categories which have all the subjects and the title "Subjects" sits at the top of the cell, however if I go to the top category titled "Courses" it displays all the sub-categories and products for Courses but the title "Subjects" and the CSS class assigned remains.

I've been able to find the following code, which I believe is responsible for this, but I'm not entirely sure:

if($_GET['Action']=='SubCategoryPage')
{
$sqlcat=mysql_query("select * from ".TABLE_CATEGORIES." a, ".TABLE_CATEGORIES_DESCRIPTION." b where a.categories_id='$_GET[cPath]' and a.categories_id=b.categories_id limit 1");
$linecat=mysql_fetch_array($sqlcat);
?>

Any help on this matter would be greatly appreciated.