Hey guys,

I've remove the $content from my node.tpl.php and I print the elements paticular.

But how to print the uc option images? I can see all ucoi in my print_r my is there a way to theme them?

Thanks

yannick

Comments

acouch’s picture

Will investigate.

tobiberlin’s picture

I've done it by

<?php
$uc_option_images = theme('uc_option_image', $file, $size);
print $uc_option_images;
?>

But the problem is that there is always the theme output - even no option images are set. Can anyone tell me how I can check if there are any option images???

dkumawat3’s picture

Please try in your product template file:

        foreach ($node->option_images as $optionimages ) { 
print '<img src="'.$base_url.'/'.$optionimages->filepath.'"  />'
  }