hallo,
I've modified taxonomy.module (I've tried this patch -> http://drupal.org/files/issues/taxonomy_count_nodes_D6.patch found here -> http://drupal.org/node/144969)
the problem is that if you assign more than one term to a product, taxonomy node counts will be wrong.
example:
- cat 1
- cat 1.1
- cat 1.1.1
if you assign only cat 1.1.1 or only cat 1.1 or only cat 1 to the product and all is ok. but if you assign cat 1, cat 1.1 and cat 1.1.1 to the product, the catalog will count 3 nodes. this is wrong.
now, my problem is that I've modified the core of drupal (it seems tha the functions taxonomy_term_count_nodes is not used by core but only by contributed modules, like uc_catalg and others) and now it workds.
but I don't want to modify the core.
can you tell me if there is a way to do the same thing in template.php without modifying the core?
I've found theme_uc_catalog_browse() but taxonomy_term_count_nodes() is also used in:
- function uc_catalog_get_page($tid)
- uc_catalog_set_breadcrumb
- _uc_catalog_navigation
thanks
nicola
