Hi,
I'm using v1.38.
I set the styling of my sub-categories to display: block;
But this causes the count of the products to go to the next line, is there a way to have it near the sub-category?
www.editricebahai.com/negozio_online
Thank you.
Hi,
I'm using v1.38.
I set the styling of my sub-categories to display: block;
But this causes the count of the products to go to the next line, is there a way to have it near the sub-category?
www.editricebahai.com/negozio_online
Thank you.
You would need to modify tpl_categories.php to move the count inside the link instead of after it. Categories Dressing has already done this, so you could use it, or study its code to see how it was done if you want to recode for yourself.
Thanks.
I tried, but most probably I didn't do it right, as the count disappeared.
Could you please point me more precisely?
And what is categories dressing?
I did it like this:
is that what I was supposed to do?PHP Code:if ($box_categories_array[$i]['has_sub_cat']) {
$content .= CATEGORIES_SEPARATOR;
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 .= '</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;
//}
//}
I found Categories Dressing.
Meanwhile if you could please explain the coding anyway, I'd appreciate.
Without going back and looking at the original file, your adjustment looks right. Not sure what happened, and am packing for a trip so don't have time to get into it for a couple of weeks.
Ok, thanks, have a good trip.
I'll play around with it , in case I'll post an update request.