4 replies [Last post]
marafa@drupal.org's picture
Offline
InternationalizationizerNot Kulvik
Joined: 10/07/2007
Juice: 139
Was this information Helpful?

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

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Catalog settings - overview bug

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.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Catalog settings - overview bug

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

incaic's picture
Offline
Joined: 10/13/2007
Juice: 115
Hi Lyle,

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.

incaic's picture
Offline
Joined: 10/13/2007
Juice: 115
ok I see what's going

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.