virgil wrote:Does someone please know how you can make it like this for v1.4.9.1:
Category_A (14)
Subcategory_A (3)
Subcategory_B (5)
Subcategory_C (6)
good to know if this works.
Code: Select all
$this->load->model('catalog/product');
$getTotal = '('. $this->model_catalog_product->getTotalProductsByCategoryId($result['category_id']) .')';
if ($this->category_id == $result['category_id']) {
$output .= '<a href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '"><b>' . $result['name'] . '</b></a>'. $getTotal;
} else {
$output .= '<a href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '">' . $result['name'] . '</a>' . $getTotal;
}
Code: Select all
#category ul {
color: red;}
Code: Select all
#category ul ul {color: purple;}
Users browsing this forum: Google [Bot] and 20 guests