I added on the Zencart Category Tab Simple Dropdown Menu add-on. The file added was the tpl_modules_categories_tabs.php file located in my zencart/includes/templates/mytemplate/templates folder. The code content contained in the file is attached.
I also added the Categories Dressing add-on as well. Didn't know if the code needed to be added to any of the files for this add-on.
Let me know if this pinpoints where the font color link can be changed.
Thanks!
http://www.tregreekboutique.com/zencart
#navCatTabsDropdown li ul
{
visibility:hidden;
position:absolute;
padding: 0.5em;
z-index: 100;
}
#navCatTabsDropdown li:hover ul
{
visibility:visible;
background-color: #ffffff;
/* border: 2px outset #315427;*/
border: 1px dotted #7a7a7a;
white-space:nowrap;
}
</style>
<?php
if (CATEGORIES_TABS_STATUS == '1')
{
echo '<div id="navCatTabsWrapper">';
echo '<div id="navCatTabs">';
echo '<div id="navCatTabsDropdown">';
echo '<ul>';
$categories_tab_query = "SELECT c.categories_id, cd.categories_name FROM ".TABLE_CATEGORIES." c, ".TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id=cd.categories_id AND c.parent_id= '0' AND cd.language_id='" . (int)$_SESSION['languages_id'] . "' AND c.categories_status='1' ORDER BY c.sort_order, cd.categories_name;";
$categories_tab = $db->Execute($categories_tab_query);
while (!$categories_tab->EOF)
{
// currently selected category
echo '<li>';
echo '<a class="category-top" href="'.zen_href_link(FILENAME_DEFAULT,'cPath=' . (int)$categories_tab->fields['categories_id']).'">';
if((int)$cPath == $categories_tab->fields['categories_id'])
echo '<span class="category-subs-selected">'.$categories_tab->fields['categories_name'].'</span>';
else
echo $categories_tab->fields['categories_name'];
echo '</a>';
$subcategories_tab_query="SELECT c.categories_id, cd.categories_name FROM ".TABLE_CATEGORIES." c, ".TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id=cd.categories_id AND c.parent_id= '".(int)$categories_tab->fields['categories_id']."' AND cd.language_id='" . (int)$_SESSION['languages_id'] . "' AND c.categories_status='1' ORDER BY c.sort_order, cd.categories_name;";
$subcategories_tab=$db->Execute($subcategories_tab_query);
if($subcategories_tab->RecordCount()>0)
{
echo '<ul>';
while (!$subcategories_tab->EOF)
{
//$cPath_new=zen_get_path($subcategories_tab->fields['categories_id']);
//$cPath_new=str_replace('=0_', '=', $cPath_new);
$cPath_new="cPath=".$categories_tab->fields['categories_id'].'_'.$subcategories_tab->fields['categories_id'];
echo '<li><a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">'.$subcategories_tab->fields['categories_name'].'</a></li><br />';
$subcategories_tab->MoveNext();
}
echo '</ul>';
}
$products_tab_query="SELECT p.`products_id`, pd.`products_name`, pd.`language_id` FROM ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd WHERE p.`products_status`=1 AND p.`master_categories_id`='".(int)$categories_tab->fields['categories_id']."' AND p.`products_id`=pd.`products_id` AND pd.`language_id`='".(int)$_SESSION['languages_id']."' ORDER BY p.`products_sort_order`;";
$products_tab=$db->Execute($products_tab_query);
if($products_tab->RecordCount()>0)
{
echo '<ul>';
while (!$products_tab->EOF)
{
$cPath_new=zen_get_path($categories->fields['categories_id']);
$cPath_new=str_replace('=0_', '=', $cPath_new);
echo '<li>'.'<a href="'.zen_href_link(zen_get_info_page($products_tab->fields['products_id']),$cPath_new. '&products_id=' . $products_tab->fields['products_id']) . '">'.$products_tab->fields['products_name'].'</a></li><br />';
$products_tab->MoveNext();
}
echo '</ul>';
}
echo '</li>';
$categories_tab->MoveNext();
}
echo '</ul>';
echo '</div>';
echo '</div>';
echo '</div>';
}
?>