Okay.. let me try this again..
To display the top level category (category ID 0) on a custom "landing page" I have use this method documented here:
http://www.zen-cart.com/forum/showpo...62&postcount=4
PHP Code:
<?php
$cat_id=0;
$categories_query = "SELECT c.categories_id, cd.categories_name, c.categories_image, c.parent_id
FROM " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
WHERE c.parent_id = :parentID
AND c.categories_id = cd.categories_id
AND cd.language_id = :languagesID
AND c.categories_status= '1'
ORDER BY sort_order, cd.categories_name";
$categories_query = $db->bindVars($categories_query, ':parentID', $cat_id, 'integer');
$categories_query = $db->bindVars($categories_query, ':languagesID', $_SESSION['languages_id'], 'integer');
$categories = $db->Execute($categories_query);
$number_of_categories = $categories->RecordCount();
require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
?>
I am having a devil of a time trying to figure out how to do something similar for a specific single category. I need a variation of this code to get a product list for one single category which I need to display on a custom defined page.. I have tried messing around with a variation of the code I've used before, but am not having any luck..
So I admit I need a hand here.. Any experts care to tell me what I am doing wrong??
Bookmarks