Catalog Block

Posts: 37
Joined: 01/31/2008

One of our customers has very view products (per category) so he'd likes to show the links to single products in the catalog block...
so instead of just showing:

cat 1
  cat 1.1
  cat 1.2
   cat 1.2.3
  cat 1.3
cat 2

he'd like to have

cat 1
  cat 1.1
  cat 1.2
   cat 1.2.3
     product1 in cat 1.2.3
     product2 in cat 1.2.3
  cat 1.3
  porduct in cat 1
cat 2

since we did a lot of theming of the catalog output on the Page...
it would be nice to get this working by overwriting the theme_uc_catalog_item
but right now I am kind of stuck...

for the future It would be nice to have that as an option...in the catalog block settings...
"show Products in catalog Block tree"

or to get it into a contrib Module like...

http://www.ubercart.org/contrib/3202

But first of all I'd need some hints how to overwrite the catalog_block do display

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

My recommendation would be to just copy the code for the existing catalog block and copy it into a new module. You can make a new catalog block and tweak it to your needs. Having the core catalog and an extended catalog block module won't cause any conflicts if you use the hooks properly.