Catalog image is coded to be able to work without imagecache.
However, it's not working.

The problem is here in theme_uc_catalog_browse:

  if (!empty($catalog->image)) {
    $output .= theme('imagecache', 'uc_thumbnail', $catalog->image['filepath'], $catalog->name, $catalog->name, array('class' => 'category'));
  }

With no imagecache module, there's no theme_imagecache so we'll never get anything back from this.

There's a related but different problem on the term form:

        $image_display = theme('image', $image->filename, t('Term image'));

Should be filepath, not filename.

Comments

rszrama’s picture

Issue tags: +theme layer, +ubercamp sprint

Tagging.

sociotech’s picture

Status: Active » Needs review
StatusFileSize
new926 bytes

Here's a patch against 2.0-rc3 that should fix the first part of the issue (no image if imagecache is disabled). One caveat: you'll of course end up with the image at its original size, which will look awkward if it isn't sized appropriately ahead of time.

sociotech’s picture

StatusFileSize
new873 bytes

And here's a patch for the second part of the issue.

Island Usurper’s picture

Status: Needs review » Fixed
StatusFileSize
new2.57 KB

I think those are good changes, but they aren't really enough to address the issue. On a catalog page that doesn't display any products, none of the child category images are displayed without imagecache. I took a look at the code that was loading those images, and decided I was doing something kind of silly. If imagecache was enabled, I was loading the cached image, and then running that image through the preset actions again.

So here are your changes and mine altogether, and they are now committed.

Status: Fixed » Closed (fixed)

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

MakeOnlineShop’s picture

Hi,

My catalog photos are too big, can you tell me how to change their size to show more products on 1 page ?

Thanks.