| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Category count figure on root category | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi All,
Just installing X-Cart and have been customising a few things. I would like to ask how to have a count of how many products are inside a category or sub-category instead of how many catgories which doesn't really help anyone at all. The way X-Cart comes as default you can spend your whole day clicking on empty categories which is very user-friendly. So I would like to have in my categories in the sidebar menu and in the sub-category menu that comes up when you click on those categories: Category 1 (23) Category 2 (14) Category 3 (9) and so on. So the figure in brackets is a total count of everything within that root category even if it has a another 5 levels inside it.....rather than it saying that it has "5 Categories". Also would like to know how I fix it saying "1 Categories" and "1 Products". I can't for the life of me find where it is comign from. TIA J |
|||||||
#2
|
|||||||
|
|||||||
![]() Put
{ $categories[cat_num].product_count} where you want the product count to appear in categories.tpl so in your example it would be: Code:
__________________
ex x-cart guru ![]() |
|||||||
#3
|
|||||||
|
|||||||
![]() ![]() ![]() Any suggestions? Thanks again J |
|||||||
|
|||
X-Cart forums © 2001-2020
|