[SOLVED] CTLModuleMaker: total number of products in the cat
Posted: Mon Mar 31, 2014 2:10 pm
I created a module using CTLModuleMaker 2.0.4.
Structure of categories:
-brand
--model (with a dropdown field "brand")
-unit
--parts (with a dropdown field "unit")
---part (with a dropdown field "parts" and the field Select "model")
List of units and parts - the same for all models.
Module call:
{cms_module module = "my_module" what = "brand" orderby = "name"}
list template is default_list.
brand_detail template:
{$item=$itemlist[0]}{$item}</br>
{cms_module module="my_module" what="model" where_brand=$item->id->value}
and so on...
how to get the total number of leaf-level products (part) in the category of any level?
For example:
> brand1 (7)
> brand2 (2)
> brand3 (0)
then:
brand1
>model1 (2)
>model2 (1)
>model3 (4) and so on...
And another thing: how to make breadcrumbs in this module?
Can anybody help? =\
Structure of categories:
-brand
--model (with a dropdown field "brand")
-unit
--parts (with a dropdown field "unit")
---part (with a dropdown field "parts" and the field Select "model")
List of units and parts - the same for all models.
Module call:
{cms_module module = "my_module" what = "brand" orderby = "name"}
list template is default_list.
brand_detail template:
{$item=$itemlist[0]}{$item}</br>
{cms_module module="my_module" what="model" where_brand=$item->id->value}
and so on...
how to get the total number of leaf-level products (part) in the category of any level?
For example:
> brand1 (7)
> brand2 (2)
> brand3 (0)
then:
brand1
>model1 (2)
>model2 (1)
>model3 (4) and so on...
And another thing: how to make breadcrumbs in this module?
Can anybody help? =\