How to place catalog images on Product pages, and how to print taxonomy name on Catalog pages?

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

1. How to place catalog images on product pages using contemplate?
Also, on a completely unrelated question I'd like to be able to add the catalog image to my product pages. I've been using contemplate to theme my product page with great success, and I see where the catalog image is displayed on the catalog page. When I say catalog image, I'm referring to the area where you can add a picture to a taxonomy term. In the past I've used Taxonomy Image, and applied taxonomy images to nodes like this:

<?php
foreach (taxonomy_node_get_terms($node->nid) as $term) {
    if (
$image = taxonomy_image_display($term->tid, "align='right'")) {
      print
"<a href='taxonomy/term/" . $term->tid . "'>" . $image . "</a>";
    }
}
?>

But when I try this on my Ubercart I get a fatal error and have to clean the code out in phpMyAdmin. So do you have any idea how I can add that catalog image to my product page?

2. On the catalog grid how can I print the taxonomy name?
Do you know of any cool ways to have it print out the taxonomy name above the title?

Thanks!
Adam Hegi
www.primalmedia.com

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: How to place catalog images on Product pages, and how to pri

Not sure you're gonna get the right eyes on this in the issue tracker. It seems more like a support request in the theming/design forum or something, not really a bug report.