I changed the Catalog vocabulary to "Products", added 2 terms which is "bedroom's" and "bed", tagged my existing product to "bed" but at Catalog block still doesn't show anything except the title of the block.

Any ideas?

Comments

longwave’s picture

What's the name of your taxonomy reference field? I think Ubercart expects it to be called taxonomy_catalog, which probably isn't the case if you change it from the default vocabulary.

maxchock’s picture

that means we can't have custom taxonomy as catalog? because all the field have to start with "field_"..

longwave’s picture

Well, it's a bug, I guess. You should be able to change the existing Catalog taxonomy reference field to point to a different vocabulary, but that means changing your data. The catalog vocabulary selection should probably be changed to a taxonomy reference field selection to handle this.

longwave’s picture

Actually, perhaps we should depend on the taxonomy_catalog field here. Have you deleted it from your product content type already? If not, just use that and make it point to a different vocabulary in the field settings. If you have deleted it, I guess we need some way of letting you recreate it.

longwave’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Awaiting answers to questions in #4

maxchock’s picture

I have deleted it from a product type before, but then pointing to another vocab didn't work. So i have add the taxonomy_catalog back.

longwave’s picture

Title: Catalog block not showing any product on custom Taxonomy. » Provide a way to repair the taxonomy_catalog field
Category: support » bug
Status: Postponed (maintainer needs more info) » Active
ju1i3’s picture

Max, I don't know if this is your problem but I just had the same with the catalog block appearing to do nothing. When I ticked the box under the title in configure block, "Make the block title a link to the top-level catalog page." the catalog came to life. When I clicked on the title I got my categories and clicking on one, the catalog displayed for that category. Sorry if this was already obvious to you. Sometimes it's the smallest things that trip us up (or they do me!)

longwave’s picture

Status: Active » Needs review
StatusFileSize
new7.2 KB

Attached patch fixes #1074906: Warning: array_intersect(): Argument #2 is not an array in uc_catalog_uc_store_status() and adds a basic repair facility.

I think this can be extended further and the catalog vid setting dropped in favour of using the field settings, but that's for another day.

longwave’s picture

Status: Needs review » Fixed

Committed, with a test to ensure it all works as expected.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.