Catalog settings - overview bug

Posts: 48
Joined: 10/07/2007
InternationalizationizerNot Kulvik

my catalog settings overviews says:
The number of nodes in a category will be shown in the catalog breadcrumb.
but in the edit tab i find that setting is unchecked.

furthermore, the overview tab and the edit tab wording is slightly different. for eg.
in overview it says:
Categories in the catalog block will be expanded if selected.
however, in edit it says:
Display subcategories in catalog view

unless of course, these are 2 different things?

--

Mohammed Arafa

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

As a follow up to this, it seems like the first issue has been fixed. The second, however, is still a mismatch... the checkboxes there are sort of ambiguous and could do with the standard sentence format.

I did notice, too, that turning on the node count in the breadcrumb doesn't seem to work at all.

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

It does now! Got to looking at it and fixed that bit yesterday.

Posts: 31
Joined: 10/13/2007

Hi Lyle,

I'm getting double counts at the category level.

eg
Jewelry (14)
-> bracelets (3)
-> earrings (4)

Do you know if this is a known bug?
Or, should I start investigating?

(on Beta2)

Thanks,
e.

Posts: 31
Joined: 10/13/2007

ok

I see what's going on.

uc_catalog_set_breadcrumb() is calling
taxonomy_term_count_nodes() with the parent
of the subcategory.

eg Jewelry when on the earrings subcategory page.

taxonomy_term_count_nodes then counts all
the products from each category and subcategory
and returns the total.

eg
7 Jewelry (parent)
3 bracelets
+4 earrings
----
14 total <- I thought it would return only 7
which is the total # of products
in the Jewelry category.

Maybe my problem is in how I categorize my items.
I put every jewelry item in 2 categories.

eg An earring is in the Jewelry category and the
earrings subcategory.

The reason I did this is so that when you click on
Jewelry all the items in the subcategories are shown.
Otherwise it was empty until one clicks on a subcategory.

Is my thinking here wrong?
Is there a better way of setting this up?

I appreciate any help.

Thanks,
e.