http://www.ksbrands.co.uk/zen/index....roducts_id=486
I'm tryin to get the Category description in the white space underneath the header but can't figure out why it's not working. Any help would be appreciated. Thanks
Here's the code that I am using:
Code:
<!--bof Category Icon -->
<?php if ($module_show_categories != 0) {?>
<?php
/**
* display the category icons
*/
require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
<?php } ?>
<?php
$current_categories_description = "";
// categories_description
$sql = "SELECT categories_description
FROM " . TABLE_CATEGORIES_DESCRIPTION . "
WHERE categories_id= :categoriesID
AND language_id = :languagesID";
$sql = $db->bindVars($sql, ':categoriesID', $current_category_id, 'integer');
$sql = $db->bindVars($sql, ':languagesID', $_SESSION['languages_id'], 'integer');
$categories_description_lookup = $db->Execute($sql);
if ($categories_description_lookup->RecordCount() > 0) {
$current_categories_description = $categories_description_lookup->fields['categories_description'];
}
?>
<?php
// categories_description
if ($current_categories_description != '') {
?>
<div id="indexProductListCatDescription" class="content"><?php echo $current_categories_description; ?></div>
<?php } // categories_description ?>
<!--eof Category Icon -->