Inner Page Categories - Categories/Products Top - Won't change style or cell
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:
$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");
Any help on this matter would be greatly appreciated.
By Nima in forum Templates, Stylesheets, Page Layout
Last Post: 26 May 2009, 02:47 AM
By dhaval in forum Templates, Stylesheets, Page Layout
Last Post: 5 May 2009, 05:18 AM
By hamid84 in forum Templates, Stylesheets, Page Layout
Last Post: 5 Aug 2007, 03:09 PM
By icebrain in forum Addon Payment Modules
Last Post: 21 Nov 2006, 04:15 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC