2 replies [Last post]
primal's picture
Offline
Joined: 08/21/2008
Juice: 39
Was this information Helpful?

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

yehanny's picture
Offline
Joined: 02/03/2010
Juice: 16
Re: How to place catalog images on Product pages, and how to pri

Same issue here, did you figure out that? thanks!... (=

yehanny's picture
Offline
Joined: 02/03/2010
Juice: 16
primalmedia@drupal.org

please, I need some help with that, can you help me out?... thanks!... (=

primalmedia@drupal.org wrote:

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