How do I display a product's image given the nid?
1 Answer
It's tricky without some more information but something like this:
$product = node_load($nid);
$image_path = $product->field_image_cache[0]['filepath'];
print theme('imagecache', 'product', $image_path, $product->title, '');