So the category box code has this: $main_category_tree->zen_category_tree();
The documents category box has this: $main_category_tree->zen_category_tree(3);
The category tree states
PHP Code:
function zen_category_tree($product_type = "all") {
global $db, $cPath, $cPath_array;
if ($product_type != 'all') {
$sql = "select type_master_type from " . TABLE_PRODUCT_TYPES . "
where type_master_type = " . $product_type . "";
$master_type_result = $db->Execute($sql);
$master_type = $master_type_result->fields['type_master_type'];
}
$this->tree = array();
if ($product_type == 'all') {
$categories_query = "select c.categories_id, cd.categories_name, c.parent_id, c.categories_image
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.parent_id = 0
and c.categories_id = cd.categories_id
and cd.language_id='" . (int)$_SESSION['languages_id'] . "'
and c.categories_status= 1
order by sort_order, cd.categories_name";
But if I change the categories box code from this $main_category_tree->zen_category_tree(); to this $main_category_tree->zen_category_tree(all); the documents category still does not show in the sidebox.
Then I tried zen_category_tree($product_type = "all") as well. No dice. So how do I get all product types to show in the categories box? I get the feeling this is simple....
Bookmarks