Same question here....... Does anyone know how to get this mod to only open to the first level subcategories not every sub-category?
Same question here....... Does anyone know how to get this mod to only open to the first level subcategories not every sub-category?
After hours of searching and experimenting, here is the solution:
Find this in /includes/templates/your_template/sideboxes/tpl_categories.php:
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 {
Replace with:
if (substr_count($box_categories_array[$i]['path'],'_') > 1 or 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 {
Anyone succeeded in changing the default look of ch_categories?
You can do it by adding the appropriate classes/ids to your stylesheet, or applying Categories Dressing as mentioned in the other thread where you have posted about this.
Hi, I am using the ch_category mod and it is working fine to expand my subcategories.
Can I know how can i make the font at my main categories to be bold (or in other colour just like yours) while the subcategories remain unbold? I tried looking at the css styesheet but couldnt get any idea. I am totally new in web designing. Can anyone help?
The exact selectors to style may depend on your template, so giving us a link to see your site live is always the most reliable way to get correct answers about CSS.
For the stock template, styling
a.category-top {}
will take care of top cats, and
a.category-subs, a.category-products {}
will cover subcategories.
If you don't find them in your stylesheet, add them and style away.
Just in case you are getting a float vs. integer problem, you can try either of these:
if ((int)substr_count($box_categories_array[$i]['path'],'_') > 1 or
if (substr_count($box_categories_array[$i]['path'],'_') >= 2 or
hi,
can somebody suggest me how to show the categories and subcategories at level one always. and afterwards on click it will show me the next level sub category too.
thanks in advance. hope to see the response soon.
Install Categories Dressing with the chcategories option, and set the 'CAT_ACTIVE_LEVEL' define as described in the readme.
Post in the Categories Dressing support thread if you need help.
Bookmarks