That's what I said:)
Printable View
That's what I said:)
gjh42,
It worked... Thanks
when I roll my mouse over a category it shows some dashes at the top and dots at the bottom of the category to highlight the selection...
may I know how to disable it...?
thnaks
never mind... I found the solution for it...
I commented out hover effects in stylesheet_categories_dressing.css file
Thanks
I just had this installed on my site, I did not do the install. When I check my site on Internet Explorer http://www.lotionsgalore.com/ , it shows the pink color rather then the yellow that was added and the dividers are also missing. When I view the site https://www.lotionsgalore.com/ , with http(s), is shows correctly! How can I fix this so http://www.lotionsgalore.com shows correctly?
Hi
Categories dressing is installed and working without problems on a 139h cart. It's set up to hide the top category.
These are the settings being used.
define ('CAT_BOX_HEADING_32_10','1|0|||Frames|1');//new list - text headings - multiple levels - styles 1 & 2
define('CAT_BOX_ACTIVE_LEVEL', '0|1|1');//hide top cats
The majority of categories have sub categories.
My question:
How do we get a category to show if it will never be having any sub-categories?
I have Template Monster template (theme490) which I read in this thread that could be an issue with tpl_categories.php and getting this mod to work. All I want to do is have the top level categories have background images w/ hover. No subcats or anything else. I have uploaded my images and updated stylesheet_categories_dressing.php to reference the images. Below is my tpl_categories code. Can someone please tell me how to make this mod work with Template Monster as well as how to configure categories_dressing_defines.php? My categories are simply 1-6.
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_categories.php 4162 2006-08-17 03:55:02Z ajeh $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<ul>' . "\n";
$li_class="";
$levels = array();
$j = 0;
foreach($main_category_tree->tree as $key => $value){
for ($i=0;$i<sizeof($box_categories_array);$i++){
if($box_categories_array[$i]['path'] == 'cPath=' . $value['path']){
$levels[$i] = $value['level'];
}
}
$j++;
}
for ($i=0;$i<sizeof($box_categories_array);$i++) {
switch(true) {
// to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
// uncomment the select below and set the cPath=3 to the cPath= your_categories_id
// many variations of this can be done
// case ($box_categories_array[$i]['path'] == 'cPath=3'):
// $new_style = 'category-holiday';
// break;
case ($box_categories_array[$i]['top'] == 'true'):
if($i == 0)
{
$new_style = 'category-top_un';
$li_class='<li class="category-top_un"><span class="top-span">';
break;
}
else{
$new_style = 'category-top';
$li_class='<li class="category-top"><span class="top-span">';
break;
}
case ($box_categories_array[$i]['has_sub_cat']):
$new_style = 'category-subs';
$li_class='<li class="category-subs" style="padding-left:' . 15 * ($levels[$i]) . 'px"><span class="top-span">';
break;
default:
$new_style = 'category-products';
$li_class='<li class="category-products" style="padding-left:' . 15 * ($levels[$i]) . 'px"><span class="top-span">';
break;
}
if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
// skip if this is for the document box (==3)
} else {
$content .= $li_class;
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
if ($box_categories_array[$i]['current']) {
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= '<span class="category-subs-parent-selected">' . $box_categories_array[$i]['name'] . CATEGORIES_SEPARATOR . '</span>';
} else {
$content .= '<span class="category-subs-selected">' . $box_categories_array[$i]['name'] . '</span>';
}
} else {
if ($box_categories_array[$i]['has_sub_cat']) {
$content .= '<span class="category-subs-parent">' . $box_categories_array[$i]['name'] . CATEGORIES_SEPARATOR .'</span>';
} else
$content .= $box_categories_array[$i]['name'];
}
$content .= '</a>';
if (SHOW_COUNTS == 'true') {
if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
$content .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
}
}
$content .= '</span></li>';
}
}
$content .= '</ul>' . "\n";
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '<div id="catBoxDivider"></div>' . "\n";
}
$content .= '<div class="box_body_2"><ul>';
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
$show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '<li><a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a></li>' . "\n";
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
// display limits
// $display_limit = zen_get_products_new_timelimit();
$display_limit = zen_get_new_date_range();
$show_this = $db->Execute("select p.products_id
from " . TABLE_PRODUCTS . " p
where p.products_status = 1 " . $display_limit . " limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '<li><a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a></li>' . "\n";
}
}
if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
$show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= 1 limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '<li><a class="category-links" href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a></li>' . "\n";
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
$content .= '<li><a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a></li>' . "\n";
}
$content .= '</ul></div>';
}
$content .= '</div>';
?>
t.harrison - You have a customized tpl_categories.php from the TM template, which has totally different code from the Categories Dressing version. They cannot be used together; you have to use one or the other. There would be no point in merging them, since they do some of the same things in different ways. If you want the whole category link to change appearance on hover, you would have to use Cat Dressing. If you just want the background to change on hover and not the text, you might be able to style the TM elements. That would be a subject for a new thread, as it is off topic for this thread.
buildingblocks - You might make your lone category into a subcategory of a "dummy" top cat, but that would have repercussions elsewhere in the page display. The best way would be to edit categories_dressing_functions.php and add a new case to the switch that mimics case 1 with the addition of a test to handle your special category. That is the outline of the approach; I could work up the exact code to use if you need more help.
Does anyone have any advice on using Categories Dressing with a template that already includes a tpl_categories.php?
In particular, I'm using Lite Red from 12leaves.com